{
"model" : "qwen3",
"messages" : [ {
"role" : "system",
"content" : "You are an artificial intelligence assistant"
}, {
"role" : "user",
"content" : "What is the sum of 1 and 2 /no_think"
}, {
"role" : "assistant",
"content":null,
"tool_calls" : [ {
"id" : "call_550cfa69-7604-4578-a2d1-25fcc798603b",
"type" : "function",
"function" : {
"id" : "call_550cfa69-7604-4578-a2d1-25fcc798603b",
"name" : "add",
"arguments" : "{\"arg0\": 1, \"arg1\": 2}"
}
} ]
}, {
"role" : "tool",
"content" : "3.0",
"tool_call_id" : "call_550cfa69-7604-4578-a2d1-25fcc798603b"
} ],
"temperature" : 0.1,
"tools" : [ {
"type" : "function",
"function" : {
"name" : "add",
"description" : "求两个数的和",
"parameters" : {
"properties" : {
"arg0" : {
"type" : "integer",
"description" : "数字"
},
"arg1" : {
"type" : "integer",
"description" : "数字"
}
},
"required" : [ "arg0", "arg1" ]
}
}
}, {
"type" : "function",
"function" : {
"name" : "sqrt",
"description" : "求平方根",
"parameters" : {
"properties" : {
"arg0" : {
"type" : "number",
"description" : "数字"
}
},
"required" : [ "arg0" ]
}
}
} ]
}
curl --location --request POST 'http://192.168.0.84:9997/v1/chat/completions' \
--header 'Content-Type: application/json' \
--data-raw '{
"model" : "qwen3",
"messages" : [ {
"role" : "system",
"content" : "You are an artificial intelligence assistant"
}, {
"role" : "user",
"content" : "What is the sum of 1 and 2 /no_think"
}, {
"role" : "assistant",
"content":null,
"tool_calls" : [ {
"id" : "call_550cfa69-7604-4578-a2d1-25fcc798603b",
"type" : "function",
"function" : {
"id" : "call_550cfa69-7604-4578-a2d1-25fcc798603b",
"name" : "add",
"arguments" : "{\"arg0\": 1, \"arg1\": 2}"
}
} ]
}, {
"role" : "tool",
"content" : "3.0",
"tool_call_id" : "call_550cfa69-7604-4578-a2d1-25fcc798603b"
} ],
"temperature" : 0.1,
"tools" : [ {
"type" : "function",
"function" : {
"name" : "add",
"description" : "求两个数的和",
"parameters" : {
"properties" : {
"arg0" : {
"type" : "integer",
"description" : "数字"
},
"arg1" : {
"type" : "integer",
"description" : "数字"
}
},
"required" : [ "arg0", "arg1" ]
}
}
}, {
"type" : "function",
"function" : {
"name" : "sqrt",
"description" : "求平方根",
"parameters" : {
"properties" : {
"arg0" : {
"type" : "number",
"description" : "数字"
}
},
"required" : [ "arg0" ]
}
}
} ]
}'
{
"id": "string",
"model": "string",
"object": "string",
"created": 0,
"choices": [
{
"index": 0,
"message": {
"role": "string",
"content": "string",
"tool_calls": [
null
],
"reasoning_content": "string"
},
"finish_reason": "string"
}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0
}
}