first commit

This commit is contained in:
lingyuzeng
2026-03-22 13:16:22 +08:00
commit ba7d42da13
23 changed files with 3541 additions and 0 deletions

19
test/fixtures/ollama-toolcalls-response.json vendored Executable file
View File

@@ -0,0 +1,19 @@
{
"model": "Huihui-Qwen3.5-27B-Claude-4.6-Opus-abliterated-4bit",
"created_at": "2024-05-01T10:00:00.000000Z",
"message": {
"role": "assistant",
"content": "",
"tool_calls": [
{
"id": "call_abc123",
"type": "function",
"function": {
"name": "read",
"arguments": "{\"path\":\"/tmp/test.txt\"}"
}
}
]
},
"done": true
}

9
test/fixtures/ollama-xml-response.json vendored Executable file
View File

@@ -0,0 +1,9 @@
{
"model": "Huihui-Qwen3.5-27B-Claude-4.6-Opus-abliterated-4bit",
"created_at": "2024-05-01T10:00:00.000000Z",
"message": {
"role": "assistant",
"content": "I will read the file for you.\n<tool_call>\n<function=read>\n<parameter=path>\n/tmp/test.txt\n</parameter>\n</function>\n</tool_call>"
},
"done": true
}

32
test/fixtures/openclaw-like-request.json vendored Executable file
View File

@@ -0,0 +1,32 @@
{
"model": "hotwa/qwen35-9b-agent:latest",
"stream": false,
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "请读取 /tmp/test.txt 的内容"
}
],
"tools": [
{
"type": "function",
"function": {
"name": "read",
"description": "Read a file from disk",
"parameters": {
"type": "object",
"properties": {
"path": {
"type": "string"
}
},
"required": ["path"]
}
}
}
]
}