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 |
||
|---|---|---|
| .. | ||
| TODO.md | ||
| __init__.py | ||
| anthropic_client.py | ||
| base_client.py | ||
| factory.py | ||
| google_client.py | ||
| model_catalog.py | ||
| openai_client.py | ||
| validators.py | ||