Merge pull request #9 from yhangf/main

feat(costrict): enable thinking mode in Anthropic-to-OpenAI message c…
This commit is contained in:
geroge 2026-04-09 16:45:42 +08:00 committed by GitHub
commit 7c3f57bf9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,7 +81,7 @@ export async function* queryModelCoStrict(
) )
// 5. 转换为 OpenAI 格式 // 5. 转换为 OpenAI 格式
const openaiMessages = anthropicMessagesToOpenAI(messagesForAPI, systemPrompt) const openaiMessages = anthropicMessagesToOpenAI(messagesForAPI, systemPrompt, { enableThinking: true })
const openaiTools = anthropicToolsToOpenAI(standardTools) const openaiTools = anthropicToolsToOpenAI(standardTools)
const openaiToolChoice = anthropicToolChoiceToOpenAI(options.toolChoice) const openaiToolChoice = anthropicToolChoiceToOpenAI(options.toolChoice)