Refactoring

This commit is contained in:
M66B
2024-05-19 17:57:05 +02:00
parent f0f5fd0b31
commit cd14ca4577
4 changed files with 54 additions and 50 deletions

View File

@@ -277,10 +277,7 @@ public class OpenAI {
return this.content;
}
static Content[] get(Spannable ssb, long id, Context context) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean multimodal = prefs.getBoolean("openai_multimodal", true);
static Content[] get(Spannable ssb, long id, boolean multimodal, Context context) {
DB db = DB.getInstance(context);
List<OpenAI.Content> contents = new ArrayList<>();
int start = 0;