🤖 自动格式化代码 [skip ci]

This commit is contained in:
github-actions[bot]
2025-04-12 16:46:11 +00:00
parent e1f272d9c5
commit 46da415d98
43 changed files with 498 additions and 532 deletions

View File

@@ -574,7 +574,7 @@ class LLM_request:
reasoning_content = message.get("reasoning_content", "")
if not reasoning_content:
reasoning_content = reasoning
# 提取工具调用信息
tool_calls = message.get("tool_calls", None)
@@ -592,7 +592,7 @@ class LLM_request:
request_type=request_type if request_type is not None else self.request_type,
endpoint=endpoint,
)
# 只有当tool_calls存在且不为空时才返回
if tool_calls:
return content, reasoning_content, tool_calls
@@ -657,9 +657,7 @@ class LLM_request:
**kwargs,
}
response = await self._execute_request(
endpoint="/chat/completions", payload=data, prompt=prompt
)
response = await self._execute_request(endpoint="/chat/completions", payload=data, prompt=prompt)
# 原样返回响应,不做处理
return response