I’m using the js-genai SDK 1.34.0 and constructing a history using the GoogleGenAI Chats object. I’m also correctly inserting thought_signature.
Until yesterday, it was processing thousands of requests without issue, but today, the responses suddenly became strange.
I also tried putting ‘text/plain’ in responseMimeType just in case, but it didn’t work.
request: {
message: inputMessage,
config: {
tools: toolsConfig.tools as ToolListUnion,
toolConfig: {
functionCallingConfig:
toolsConfig.callableTools.length > 0
? {
mode: FunctionCallingConfigMode.AUTO,
}
: undefined,
},
thinkingConfig: {
includeThoughts: true,
thinkingLevel: thinkingLevel,
},
responseMimeType: 'text/plain', // (Try)
automaticFunctionCalling: {
disable: false,
maximumRemoteCalls: 10,
},
systemInstruction: [
{
text: this.SYSTEM_PROMPT,
},
],
},
},