curl --location --request POST 'https://openai.xxx.com/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer sk-xxxxx' \
--data-raw '{
"model": "glm-4-air",
"messages": [
{
"role": "user",
"content": "月亮有多高!"
}
]
}'
https://ollama.com/ https://github.com/ollama/ollama
curl http://localhost:11434/api/chat -d '{
"model": "llama3.2",
"messages": [
{ "role": "user", "content": "why is the sky blue?" }
]
}'

评论