{
"model": "qwen2.5:latest",
"messages": [
{
"role": "developer",
"content": "你是一个人工智能助手"
},
{
"role": "user",
"content": "你是谁"
}
]
}
curl --location --request POST 'http://127.0.0.1:11434/v1/chat/completions' \
--header 'Authorization: Bearer sk' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "qwen2.5:latest",
"messages": [
{
"role": "developer",
"content": "你是一个人工智能助手"
},
{
"role": "user",
"content": "你是谁"
}
]
}'
{}