|
|
@ -2444,7 +2444,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
|
|
|
|
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
|
|
|
String model = prefs.getString("openai_model", "gpt-3.5-turbo");
|
|
|
|
String model = prefs.getString("openai_model", "gpt-3.5-turbo");
|
|
|
|
float temperature = prefs.getFloat("openai_temperature", 1.0f);
|
|
|
|
float temperature = prefs.getFloat("openai_temperature", 0.5f);
|
|
|
|
|
|
|
|
|
|
|
|
OpenAI.Message[] completions =
|
|
|
|
OpenAI.Message[] completions =
|
|
|
|
OpenAI.completeChat(context, model, result.toArray(new OpenAI.Message[0]), temperature, 1);
|
|
|
|
OpenAI.completeChat(context, model, result.toArray(new OpenAI.Message[0]), temperature, 1);
|
|
|
|