MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / captureThinkingConfig

Function captureThinkingConfig

packages/kosong/test/google-genai.test.ts:818–828  ·  view source on GitHub ↗
(
        effort: 'off' | 'low' | 'medium' | 'high',
      )

Source from the content-addressed store, hash-verified

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');

Callers 1

Calls 3

createProviderFunction · 0.70
captureRequestBodyFunction · 0.70
withThinkingMethod · 0.65

Tested by

no test coverage detected