wa
This commit is contained in:
@@ -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));
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user