From a534c02d7569d3741087347644c057297f39a267 Mon Sep 17 00:00:00 2001 From: Dong_master <2213070223@qq.com> Date: Sun, 17 Aug 2025 23:34:01 +0800 Subject: [PATCH] fix:remove print --- pkg/provider/modelmgr/requesters/modelscopechatcmpl.py | 2 -- pkg/provider/runners/dashscopeapi.py | 2 -- pkg/provider/runners/localagent.py | 1 - 3 files changed, 5 deletions(-) diff --git a/pkg/provider/modelmgr/requesters/modelscopechatcmpl.py b/pkg/provider/modelmgr/requesters/modelscopechatcmpl.py index 72e6dd58..82d8df70 100644 --- a/pkg/provider/modelmgr/requesters/modelscopechatcmpl.py +++ b/pkg/provider/modelmgr/requesters/modelscopechatcmpl.py @@ -108,7 +108,6 @@ class ModelScopeChatCompletions(requester.ProviderAPIRequester): message_delta['role'] = 'assistant' message_delta['tool_calls'] = tool_calls if tool_calls else None - # print(message_delta) return [message_delta] async def _make_msg( @@ -120,7 +119,6 @@ class ModelScopeChatCompletions(requester.ProviderAPIRequester): # 确保 role 字段存在且不为 None if 'role' not in chatcmpl_message or chatcmpl_message['role'] is None: chatcmpl_message['role'] = 'assistant' - print(chatcmpl_message) message = llm_entities.Message(**chatcmpl_message) return message diff --git a/pkg/provider/runners/dashscopeapi.py b/pkg/provider/runners/dashscopeapi.py index b646a45d..737bc312 100644 --- a/pkg/provider/runners/dashscopeapi.py +++ b/pkg/provider/runners/dashscopeapi.py @@ -122,7 +122,6 @@ class DashScopeAPIRunner(runner.RequestRunner): ) idx_chunk = 0 try: - # print(await query.adapter.is_stream_output_supported()) is_stream = await query.adapter.is_stream_output_supported() except AttributeError: @@ -251,7 +250,6 @@ class DashScopeAPIRunner(runner.RequestRunner): # 处理API返回的流式输出 try: - # print(await query.adapter.is_stream_output_supported()) is_stream = await query.adapter.is_stream_output_supported() except AttributeError: diff --git a/pkg/provider/runners/localagent.py b/pkg/provider/runners/localagent.py index 124d405f..2500b363 100644 --- a/pkg/provider/runners/localagent.py +++ b/pkg/provider/runners/localagent.py @@ -148,7 +148,6 @@ class LocalAgentRunner(runner.RequestRunner): if tool_call.function and tool_call.function.arguments: # 流式处理中,工具调用参数可能分多个chunk返回,需要追加而不是覆盖 tool_calls_map[tool_call.id].function.arguments += tool_call.function.arguments - # print(list(tool_calls_map.values()) if (tool_calls_map and msg.is_final) else None) # continue # 每8个chunk或最后一个chunk时,输出所有累积的内容 if msg_idx % 8 == 0 or msg.is_final: