OpenAI endpoint absolute

This commit is contained in:
M66B
2023-11-28 20:35:21 +01:00
parent 22c6671f47
commit 728eb6fa57
3 changed files with 7 additions and 43 deletions

View File

@@ -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;
}