chore(fam-edge): gemini 模型链每个模型请求前打印当前超时(确认 ×2 对 flash/flash-lite 均生效)
This commit is contained in:
@@ -225,6 +225,8 @@ class GeminiAdapter(BaseModelAdapter):
|
||||
]
|
||||
for model in self.model_chain:
|
||||
for attempt in range(2):
|
||||
if attempt == 0:
|
||||
logger.info(f"Gemini [{model}] 本轮请求超时 {self.timeout}s")
|
||||
try:
|
||||
resp = requests.post(
|
||||
f"{self._base_url}/models/{model}:generateContent?key={self.api_key}",
|
||||
|
||||
Reference in New Issue
Block a user