TradingAgents/tradingagents
KK 00815a5ade fix: do not pass base_url to ChatGoogleGenerativeAI
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
2026-03-31 16:16:10 +08:00
..
agents feat: multi-language output support for analyst reports and final decision (#472) 2026-03-29 19:19:01 +00:00
dataflows fix: add yf_retry to yfinance news fetchers (#445) 2026-03-29 17:42:24 +00:00
graph refactor: standardize portfolio manager, five-tier rating scale, fix analyst status tracking 2026-03-22 23:30:29 +00:00
llm_clients fix: do not pass base_url to ChatGoogleGenerativeAI 2026-03-31 16:16:10 +08:00
__init__.py fix: set process-level UTF-8 default for cross-platform consistency 2026-03-22 23:42:37 +00:00
default_config.py chore: update model lists and defaults to GPT-5.4 family 2026-03-29 19:45:36 +00:00