fix: apply base_url to GoogleClient LLM instance

This commit is contained in:
阳虎 2026-03-18 03:11:21 +08:00
parent b19c5c18fb
commit 06859104e8
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ class GoogleClient(BaseLLMClient):
"""Return configured ChatGoogleGenerativeAI instance."""
llm_kwargs = {"model": self.model}
# Apply base_url if configured (for v1beta endpoint support)
if self.base_url:
llm_kwargs["api_endpoint"] = self.base_url
for key in ("timeout", "max_retries", "google_api_key", "callbacks"):
if key in self.kwargs:
llm_kwargs[key] = self.kwargs[key]