Gemini API Returns Empty Text With finishReason MAX_TOKENS: Thinking Tokens Eat Your Output Limit
Eren Şimşir· Founder & Chief Technical Editor• Why response.text is empty: the thinking tokens used the budget first On Gemini models that think, the tokens spent on reasoning count against max_output_tokens before the first word of the answer is written. In…