fix: fix command reply_message error bug,del some print

This commit is contained in:
Dong_master
2025-08-12 20:54:47 +08:00
parent b6d47187f5
commit 4668db716a
4 changed files with 20 additions and 20 deletions
@@ -36,7 +36,7 @@ class ModelScopeChatCompletions(requester.ProviderAPIRequester):
self,
args: dict,
extra_body: dict = {},
remove_think:bool = False,
remove_think: bool = False,
) -> chat_completion.ChatCompletion:
args['stream'] = True
@@ -291,7 +291,6 @@ class ModelScopeChatCompletions(requester.ProviderAPIRequester):
# 处理工具调用增量
if delta.get('tool_calls'):
print(delta.get('tool_calls'))
for tool_call in delta['tool_calls']:
if tool_call['id'] != '':
tool_id = tool_call['id']
+1 -1
View File
@@ -226,7 +226,7 @@ class LocalAgentRunner(runner.RequestRunner):
# 第一次请求工具调用时的内容
if msg_idx == 1:
accumulated_content =first_content if first_content is not None else accumulated_content
accumulated_content = first_content if first_content is not None else accumulated_content
# 累积内容
if msg.content: