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

@@ -17,6 +17,9 @@ class Settings(BaseSettings):
google_gemini_api_key: str | None = None
anthropic_api_key: str | None = None
telegra_ph_token: str | None = None
ollama_web_search_api_key: str | None = None
ollama_web_search_max_results: int = 5
ollama_web_search_timeout: int = 10
@cached_property
def openai_client(self) -> openai.OpenAI: