🤖 自动格式化代码 [skip ci]
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user