feat: support web search via ollama cloud web search for ChatGPT pro handler

Signed-off-by: Frost Ming <me@frostming.com>
This commit is contained in:
Frost Ming
2025-10-27 11:39:04 +08:00
parent 5bdfe6fbad
commit 791fe0625f
3 changed files with 293 additions and 25 deletions

View File

@ -63,6 +63,8 @@ Note, if you are using third party service, you need to `export ANTHROPIC_BASE_U
3. use `gpt: ${message}` to ask
Note, if you are using third party service, you need to `export OPENAI_API_BASE=${the_url}` to change the url.
Optional web search support:
- export `OLLAMA_WEB_SEARCH_API_KEY=${the_ollama_web_search_api_key}` (and `OLLAMA_WEB_SEARCH_MAX_RESULTS` as needed)
## Bot -> llama3