mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-05-21 23:24:44 +02:00
Fix web search: use features.web_search for Open WebUI
This commit is contained in:
parent
8a896cfc5a
commit
ed97bf8d8b
1 changed files with 2 additions and 2 deletions
|
|
@ -98,9 +98,9 @@ class OpenAIBackend(LLMBackend):
|
|||
}
|
||||
|
||||
# Enable web search if configured (Open WebUI feature)
|
||||
# Uses tool_ids parameter to invoke the web_search tool
|
||||
# Uses features.web_search parameter
|
||||
if getattr(self.config, 'web_search', False):
|
||||
request_kwargs["extra_body"] = {"tool_ids": ["web_search"]}
|
||||
request_kwargs["extra_body"] = {"features": {"web_search": True}}
|
||||
|
||||
response = await self._client.chat.completions.create(**request_kwargs)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue