tools debug

This commit is contained in:
Concedo
2026-03-19 23:13:02 +08:00
parent 699bc6b278
commit c4b1a17e1a
+2
View File
@@ -4026,6 +4026,8 @@ class KcppServerRequestHandler(http.server.SimpleHTTPRequestHandler):
tc["function"]["arguments"] = json.dumps(tcarg)
recvtxt = None
currfinishreason = "tool_calls"
if args.debugmode:
print(f"Debug ToolCall Response: {json.dumps(tool_calls)}")
if api_format == 1:
res = {"data": {"seqs": [recvtxt]}}