Skip to content

Commit 383410c

Browse files
DavidShawagpt-5.6-sol
andcommitted
test(openai): preserve compatible thinking formats
Keep the upstream DeepSeek and MiMo request formats covered when reasoning effort is enabled. Co-Authored-By: gpt-5.6-sol <openai@claude-code-best.win>
1 parent d86c954 commit 383410c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/services/api/openai/__tests__/thinking.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,11 @@ describe('buildOpenAIRequestBody — thinking params', () => {
211211
}) as Record<string, unknown>
212212
expect(body.reasoning_effort).toBe('high')
213213
expect(body.thinking).toEqual({ type: 'enabled' })
214-
expect('enable_thinking' in body).toBe(false)
215-
expect('chat_template_kwargs' in body).toBe(false)
214+
expect(body.enable_thinking).toBe(true)
215+
expect(body.chat_template_kwargs).toEqual({
216+
thinking: true,
217+
enable_thinking: true,
218+
})
216219
})
217220

218221
test('does NOT include thinking params when disabled', () => {

0 commit comments

Comments
 (0)