fix: 修复流式支持导致的故障

This commit is contained in:
Rikki committed 2025-03-08 03:17:20 +08:00
1 parent 94216e352b
commit 769fb42598
1 file changed
+1 -1
+1 -1
View File
@@ -253,7 +253,7 @@ class LLM_request:
async def _build_payload(self, prompt: str, image_base64: str = None) -> dict:
"""构建请求体"""
# 复制一份参数,避免直接修改 self.params
params_copy = self._transform_parameters(self.params)
params_copy = await self._transform_parameters(self.params)
if image_base64:
payload = {
"model": self.model_name,