mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-11 16:39:15 +08:00
fix: enableWebSearch logic error (#9730)
fix: 修复enableWebSearch条件判断逻辑错误
This commit is contained in:
parent
16973fc034
commit
57d9b79e77
@ -475,6 +475,7 @@ export async function fetchChatCompletion({
|
||||
|
||||
// NOTE:assistant.enableWebSearch 的语义是是否启用模型内置搜索功能
|
||||
const enableWebSearch =
|
||||
assistant.enableWebSearch ||
|
||||
(assistant.webSearchProviderId && isWebSearchModel(model)) ||
|
||||
isOpenRouterBuiltInWebSearchModel(model) ||
|
||||
model.id.includes('sonar') ||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user