The CLI hardcoded https://generativelanguage.googleapis.com/v1 as the backend_url for the Google provider. When forwarded as base_url to ChatGoogleGenerativeAI, the google-genai SDK constructs incorrect request paths resulting in 404 Not Found for all Gemini models. Fix by setting the Google provider's backend_url to None so the SDK uses its default endpoint. GoogleClient.get_llm() still forwards base_url when explicitly provided, preserving proxy/custom endpoint support. Reproducer: ChatGoogleGenerativeAI( model="gemini-2.5-flash", base_url="https://generativelanguage.googleapis.com/v1", ).invoke("Hello") # → ChatGoogleGenerativeAIError: 404 Not Found |
||
|---|---|---|
| .. | ||
| static | ||
| __init__.py | ||
| announcements.py | ||
| config.py | ||
| main.py | ||
| models.py | ||
| stats_handler.py | ||
| utils.py | ||