mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-09-02 15:47:16 +00:00
fix:remove print
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user