mirror of
https://github.com/farcasclaudiu/TradingAgents.git
synced 2026-06-29 15:01:26 +03:00
fix: pass base_url to Google and Anthropic clients for proxy support (#427)
This commit is contained in:
@@ -27,6 +27,9 @@ class GoogleClient(BaseLLMClient):
|
||||
"""Return configured ChatGoogleGenerativeAI instance."""
|
||||
llm_kwargs = {"model": self.model}
|
||||
|
||||
if self.base_url:
|
||||
llm_kwargs["base_url"] = self.base_url
|
||||
|
||||
for key in ("timeout", "max_retries", "callbacks", "http_client", "http_async_client"):
|
||||
if key in self.kwargs:
|
||||
llm_kwargs[key] = self.kwargs[key]
|
||||
|
||||
Reference in New Issue
Block a user