fix: 修复payload没有流式输出标志的问题

This commit is contained in:
Rikki
2025-03-30 05:43:12 +08:00
parent 362dda1ab3
commit fcd91acd2a
3 changed files with 31 additions and 18 deletions

View File

@@ -179,6 +179,10 @@ class LLM_request:
# logger.debug(f"{logger_msg}发送请求到URL: {api_url}")
# logger.info(f"使用模型: {self.model_name}")
# 流式输出标志
if stream_mode:
payload["stream"] = stream_mode
# 构建请求体
if image_base64:
payload = await self._build_payload(prompt, image_base64, image_format)