hollama
hollama copied to clipboard
Ollama has a new thinking API
REF https://github.com/ollama/ollama/releases/tag/v0.9.0
New request:
curl http://localhost:11434/api/chat -d '{
"model": "deepseek-r1",
"messages": [
{
"role": "user",
"content": "Why is the sky blue?"
},
],
"think": true
}'
New response:
{
"message": {
"role": "assistant",
"thinking": "First, I need to understand what the question is asking. It's asking how many letters 'R' are present in the word "strawberry...",
"content": "There are **3** instances of the letter **R** in the word **\"strawberry.\"**"
}
}