Merge pull request #9 from yhangf/main
feat(costrict): enable thinking mode in Anthropic-to-OpenAI message c…
This commit is contained in:
commit
7c3f57bf9d
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user