From 2636e9d55a82c517220c7cf69cbeafa1822460c7 Mon Sep 17 00:00:00 2001 From: Windpicker-owo <3431391539@qq.com> Date: Thu, 17 Jul 2025 15:47:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E4=BF=AE=E6=94=B9=E4=BA=86fi?= =?UTF-8?q?le=5Fbytes=E7=9A=84=E7=B1=BB=E5=9E=8B=E6=A0=87=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/llm_models/utils_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llm_models/utils_model.py b/src/llm_models/utils_model.py index 7270587e6..511835c83 100644 --- a/src/llm_models/utils_model.py +++ b/src/llm_models/utils_model.py @@ -664,7 +664,7 @@ class LLMRequest: new_params["max_completion_tokens"] = new_params.pop("max_tokens") return new_params - async def _build_formdata_payload(self, file_bytes: str, file_format: str) -> aiohttp.FormData: + async def _build_formdata_payload(self, file_bytes: bytes, file_format: str) -> aiohttp.FormData: """构建form-data请求体""" # 目前只适配了音频文件 # 如果后续要支持其他类型的文件,可以在这里添加更多的处理逻辑