Spaces:
Running
Running
Upload 10 files
Browse files- 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 |
-
|
| 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",
|