diff --git a/src/llm_models/model_client/gemini_client.py b/src/llm_models/model_client/gemini_client.py index 4ff7d9d6..d80924ba 100644 --- a/src/llm_models/model_client/gemini_client.py +++ b/src/llm_models/model_client/gemini_client.py @@ -351,7 +351,8 @@ class GeminiClient(BaseClient): # 尝试传入自定义base_url(实验性,必须为Gemini格式) if hasattr(api_provider, "base_url") and api_provider.base_url: - self._api_client.http_options.base_url = api_provider.base_url + self.client._api_client._base_url = api_provider.base_url + self._api_client = self.client._api_client @staticmethod def clamp_thinking_budget(tb: int, model_id: str) -> int: