(
effort: 'off' | 'low' | 'medium' | 'high',
)
| 816 | |
| 817 | describe('Gemini 3 thinking effort mapping', () => { |
| 818 | async function captureThinkingConfig( |
| 819 | effort: 'off' | 'low' | 'medium' | 'high', |
| 820 | ): Promise<Record<string, unknown> | undefined> { |
| 821 | const provider = createProvider({ model: 'gemini-3-pro-preview' }).withThinking(effort); |
| 822 | const history: Message[] = [ |
| 823 | { role: 'user', content: [{ type: 'text', text: 'Think' }], toolCalls: [] }, |
| 824 | ]; |
| 825 | const body = await captureRequestBody(provider, '', [], history); |
| 826 | const config = body['config'] as Record<string, unknown>; |
| 827 | return config['thinking_config'] as Record<string, unknown> | undefined; |
| 828 | } |
| 829 | |
| 830 | it('off minimizes thinking and hides thoughts (not just default config)', async () => { |
| 831 | const thinkingConfig = await captureThinkingConfig('off'); |
no test coverage detected