mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 09:03:56 +02:00
OpenAI endpoint absolute
This commit is contained in:
@@ -2662,14 +2662,6 @@ public class FragmentCompose extends FragmentBase {
|
||||
OpenAI.Message[] completions =
|
||||
OpenAI.completeChat(context, model, result.toArray(new OpenAI.Message[0]), temperature, 1);
|
||||
|
||||
try {
|
||||
Pair<Double, Double> usage = OpenAI.getGrants(context);
|
||||
args.putDouble("used", usage.first);
|
||||
args.putDouble("granted", usage.second);
|
||||
} catch (Throwable ex) {
|
||||
Log.w(ex);
|
||||
}
|
||||
|
||||
return completions;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user