Hi,
I read the doc
I add thinkingBudget: 0
like this but still not working! it’s slow as if Thinking is not disabled
when I tried OpenRouter version it’s faster , also when I tried Flash 2.0 it’s also faster than Flash 2.5 via Google AI Studio API with thinkingBudget: 0
did I do it wrong ?
const requestBody = {
contents: [{
parts: [
{ text: preamble },
{ text: prompt }
]
}],
generationConfig: {
temperature: 0.3,
response_mime_type: "application/json",
thinkingConfig: { thinkingBudget: 0 }
,response_schema: {
type: "object",
properties: {
translations: {
type: "array",
items: { type: "string" }
}
},
required: ["array"]
}
}
};