You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/src/main/java/com/example/GeminiVisionService.kt
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ object GeminiVisionService {
38
38
39
39
privatevalVISION_MODELS=listOf(
40
40
"llama-3.2-11b-vision-preview",
41
-
"llama-3.2-90b-vision-preview"
41
+
"qwen/qwen3.6-27b"
42
42
)
43
43
44
44
privatefunparseText(body:String): String {
@@ -65,7 +65,7 @@ object GeminiVisionService {
65
65
val langName =LanguageManager.getLanguageName(lang)
66
66
val translationInstruction =if (lang !="en") " YOU MUST RESPOND ENTIRELY AND STRICTLY IN THE $langName LANGUAGE. However, if a JSON format is requested, keep the JSON structure and keys strictly in English, and only translate the values."else""
67
67
68
-
val finalPrompt = prompt + translationInstruction +"\nCRITICAL: Respond ONLY with a single raw JSON object. DO NOT include any reasoning, chain of thought, intro text, or markdown code blocks."
68
+
val finalPrompt = prompt + translationInstruction +"\nCRITICAL: Respond ONLY with valid raw JSON object. DO NOT include any reasoning, thinking text, or intro text."
69
69
val escapedPrompt = finalPrompt.replace("\\", "\\\\").replace("\"", "\\\"", false).replace("\n", "\\n", false)
0 commit comments