mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
2185fc61c0
commit
a6f25b99f9
1 changed files with 1 additions and 1 deletions
|
|
@ -1667,7 +1667,7 @@
|
||||||
(model) => $models.find((m) => m.id === model)?.info?.meta?.capabilities?.web_search ?? true
|
(model) => $models.find((m) => m.id === model)?.info?.meta?.capabilities?.web_search ?? true
|
||||||
).length === currentModels.length
|
).length === currentModels.length
|
||||||
) {
|
) {
|
||||||
if (($settings?.webSearch ?? false) === 'always') {
|
if ($config?.features?.enable_web_search && ($settings?.webSearch ?? false) === 'always') {
|
||||||
features = { ...features, web_search: true };
|
features = { ...features, web_search: true };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue