updtge:优化超参

This commit is contained in:
hrz
2025-03-20 08:57:39 +08:00
parent ca8f9a7e4a
commit 80ffa7a577
2 changed files with 10 additions and 20 deletions
@@ -87,7 +87,6 @@ class LLMProvider(LLMProviderBase):
# 发送POST请求,经测试手动 request 无法使用 stream 模式
if self.proxies:
logger.bind(tag=TAG).info(f"Gemini response mode ")
response = requests.post(url, headers=headers, json=request_body, stream=False, proxies=self.proxies)
try:
data = response.json() # 直接解析JSON