feat: implement Stream Spoofing interceptor and robust format preservation patches

This commit is contained in:
lingyuzeng
2026-03-22 17:55:47 +08:00
parent ebd73e1c69
commit ce99e8b418
12 changed files with 426 additions and 11 deletions

27
test/fixtures/vllm-like-request.json vendored Executable file
View File

@@ -0,0 +1,27 @@
{
"model": "Qwen3.5-27B",
"messages": [
{
"role": "user",
"content": "Please tell me what's in /tmp/test.txt"
}
],
"stream": false,
"tools": [
{
"type": "function",
"function": {
"name": "read",
"description": "Read a file",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string"
}
}
}
}
}
]
}