This commit is contained in:
2025-08-04 00:20:02 -07:00
parent 4cfc960b1c
commit b841576eaa
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -66,7 +66,7 @@ function generateRTSJSONSchema(gameState) {
"description": "Current threat level"
},
"lastEvent": {
"type": ["string", "null"],
"type": "string",
"description": "Description of the last significant event"
},
"casualties": {
@@ -624,5 +624,7 @@ eventSource.on(event_types.CHAT_COMPLETION_SETTINGS_READY, (data) => {
data.responseMimeType = "application/json";
data.responseSchema = RTS_JSON_SCHEMA;
console.log('RTS: Using structured output with dynamic schema');
//dump the schema to console for debugging
console.log('RTS: Current JSON schema:', JSON.stringify(RTS_JSON_SCHEMA, null, 2));
}
});