mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2026-01-13 21:04:24 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user