The CLI hardcodes backend_url as https://generativelanguage.googleapis.com/v1 for the Google provider and passes it as base_url to ChatGoogleGenerativeAI. However, the google-genai SDK manages its own endpoint and API versioning internally — passing an external base_url causes the SDK to construct incorrect request paths, resulting in 404 Not Found errors for all Gemini models including stable ones like gemini-2.5-flash. Remove the base_url forwarding for Google clients so the SDK uses its default endpoint logic. Reproducer: ChatGoogleGenerativeAI(model="gemini-2.5-flash", base_url="https://generativelanguage.googleapis.com/v1").invoke("hi") # → 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 | ||