fix: rewrite vllm tool calls from reasoning content

This commit is contained in:
lingyuzeng
2026-03-22 19:56:45 +08:00
parent 8eb7b25ec9
commit 7a718d8983
3 changed files with 92 additions and 38 deletions

View File

@@ -8,7 +8,8 @@
"index": 0,
"message": {
"role": "assistant",
"content": "<function=read>\n<parameter=path>\n/tmp/test.txt\n</parameter>\n</function>"
"content": "",
"reasoning_content": "<tool_call>\n{\"name\":\"read\",\"arguments\":{\"path\":\"/tmp/test.txt\"}}\n</tool_call>"
},
"finish_reason": "stop"
}