Lashtw commited on
Commit
7c62f3e
·
verified ·
1 Parent(s): ad5475c

Upload 10 files

Browse files
Files changed (1) hide show
  1. src/services/gemini.js +1 -3
src/services/gemini.js CHANGED
@@ -68,9 +68,7 @@ async function callGeminiAPI(messages, jsonMode = false) {
68
  }
69
  };
70
 
71
- if (jsonMode) {
72
- payload.generationConfig.responseMimeType = "application/json";
73
- }
74
 
75
  const response = await fetch(endpoint, {
76
  method: "POST",
 
68
  }
69
  };
70
 
71
+ // Note: responseMimeType is NOT supported by gemini-pro v1, so we rely on prompt instructions for JSON output.
 
 
72
 
73
  const response = await fetch(endpoint, {
74
  method: "POST",