curl --location 'https://4sapi.com/responses' \
--header 'Accept: application/json' \
--header 'Authorization: sk-xxx' \
--header 'Content-Type: application/json' \
--data '{
"model": "deepseek-v4-flash-0731",
"input": [
{
"role": "user",
"content": "今天广州天气怎么样"
}
],
"tools": [
{
"type": "function",
"name": "get_weather",
"description": "Get weather of a location, the user should supply a location first.",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city and state, e.g. San Francisco, CA",
}
},
"required": [
"location"
]
}
}
]
}'