Spaces:
Sleeping
Sleeping
Update aiEngine.js
Browse files- aiEngine.js +2 -2
aiEngine.js
CHANGED
|
@@ -97,7 +97,7 @@ export const AIEngine = {
|
|
| 97 |
* Returns STRICT JSON for the Frontend
|
| 98 |
*/
|
| 99 |
generateEntryQuestions: async (description) => {
|
| 100 |
-
const modelId = 'gemini-2.
|
| 101 |
const input = `[MODE 1: QUESTIONS]\nAnalyze this game idea: "${description}".\nGenerate 3 crucial technical questions to clarify scope. Output ONLY raw JSON array.`;
|
| 102 |
|
| 103 |
try {
|
|
@@ -136,7 +136,7 @@ export const AIEngine = {
|
|
| 136 |
},
|
| 137 |
contents: [{ role: 'user', parts: [{ text: input }] }]
|
| 138 |
});
|
| 139 |
-
return JSON.parse(response.text;
|
| 140 |
} catch (e) {
|
| 141 |
console.error("Grading Error:", e);
|
| 142 |
return { feasibility: 80, rating: "B", summary: "Standard project structure detected." };
|
|
|
|
| 97 |
* Returns STRICT JSON for the Frontend
|
| 98 |
*/
|
| 99 |
generateEntryQuestions: async (description) => {
|
| 100 |
+
const modelId = 'gemini-2.5-flash';
|
| 101 |
const input = `[MODE 1: QUESTIONS]\nAnalyze this game idea: "${description}".\nGenerate 3 crucial technical questions to clarify scope. Output ONLY raw JSON array.`;
|
| 102 |
|
| 103 |
try {
|
|
|
|
| 136 |
},
|
| 137 |
contents: [{ role: 'user', parts: [{ text: input }] }]
|
| 138 |
});
|
| 139 |
+
return JSON.parse(response.text);
|
| 140 |
} catch (e) {
|
| 141 |
console.error("Grading Error:", e);
|
| 142 |
return { feasibility: 80, rating: "B", summary: "Standard project structure detected." };
|