Update gemini_client.py

pull/1248/head
foxplaying 2025-09-21 21:36:02 +08:00 committed by GitHub
parent be3b80f90e
commit 036be7a99b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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: