完成其他部分对返回值处理的修改

This commit is contained in:
UnCLAS-Prommer
2025-03-20 17:08:53 +08:00
parent e9bd3196ba
commit a973057579
4 changed files with 6 additions and 6 deletions

View File

@@ -522,7 +522,7 @@ class LLM_request:
return {"Authorization": f"Bearer {self.api_key}", "Content-Type": "application/json"}
# 防止小朋友们截图自己的key
async def generate_response(self, prompt: str) -> Tuple[str, str]:
async def generate_response(self, prompt: str) -> Tuple[str, str, str]:
"""根据输入的提示生成模型的异步响应"""
content, reasoning_content = await self._execute_request(endpoint="/chat/completions", prompt=prompt)