mirror of https://github.com/M66B/FairEmail.git
OpenAI: disable multimodal by default
This commit is contained in:
parent
9b17a27ee4
commit
3f0702fb1e
|
@ -50,7 +50,7 @@ public class AI {
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
String model = prefs.getString("openai_model", OpenAI.DEFAULT_MODEL);
|
String model = prefs.getString("openai_model", OpenAI.DEFAULT_MODEL);
|
||||||
float temperature = prefs.getFloat("openai_temperature", OpenAI.DEFAULT_TEMPERATURE);
|
float temperature = prefs.getFloat("openai_temperature", OpenAI.DEFAULT_TEMPERATURE);
|
||||||
boolean multimodal = prefs.getBoolean("openai_multimodal", true);
|
boolean multimodal = prefs.getBoolean("openai_multimodal", false);
|
||||||
|
|
||||||
OpenAI.Message message;
|
OpenAI.Message message;
|
||||||
if (body instanceof Spannable)
|
if (body instanceof Spannable)
|
||||||
|
@ -129,7 +129,7 @@ public class AI {
|
||||||
String model = prefs.getString("openai_model", OpenAI.DEFAULT_MODEL);
|
String model = prefs.getString("openai_model", OpenAI.DEFAULT_MODEL);
|
||||||
float temperature = prefs.getFloat("openai_temperature", OpenAI.DEFAULT_TEMPERATURE);
|
float temperature = prefs.getFloat("openai_temperature", OpenAI.DEFAULT_TEMPERATURE);
|
||||||
String prompt = prefs.getString("openai_summarize", OpenAI.DEFAULT_SUMMARY_PROMPT);
|
String prompt = prefs.getString("openai_summarize", OpenAI.DEFAULT_SUMMARY_PROMPT);
|
||||||
boolean multimodal = prefs.getBoolean("openai_multimodal", true);
|
boolean multimodal = prefs.getBoolean("openai_multimodal", false);
|
||||||
|
|
||||||
List<OpenAI.Message> input = new ArrayList<>();
|
List<OpenAI.Message> input = new ArrayList<>();
|
||||||
input.add(new OpenAI.Message(OpenAI.USER,
|
input.add(new OpenAI.Message(OpenAI.USER,
|
||||||
|
|
|
@ -787,7 +787,7 @@ public class FragmentOptionsIntegrations extends FragmentBase implements SharedP
|
||||||
etOpenAiModel.setText(prefs.getString("openai_model", null));
|
etOpenAiModel.setText(prefs.getString("openai_model", null));
|
||||||
etOpenAiModel.setEnabled(swOpenAi.isChecked());
|
etOpenAiModel.setEnabled(swOpenAi.isChecked());
|
||||||
|
|
||||||
swOpenMultiModal.setChecked(prefs.getBoolean("openai_multimodal", true));
|
swOpenMultiModal.setChecked(prefs.getBoolean("openai_multimodal", false));
|
||||||
swOpenMultiModal.setEnabled(swOpenAi.isChecked());
|
swOpenMultiModal.setEnabled(swOpenAi.isChecked());
|
||||||
|
|
||||||
float temperature = prefs.getFloat("openai_temperature", OpenAI.DEFAULT_TEMPERATURE);
|
float temperature = prefs.getFloat("openai_temperature", OpenAI.DEFAULT_TEMPERATURE);
|
||||||
|
|
Loading…
Reference in New Issue