In the process of using SpringAi to dock with Ollama, there is no parameter that controls think. Taking the qwen3:1.7b model as an example, there are the following issues:
- It cannot be controlled whether it thinks or not, it defaults to thinking.
- The beginning and end of the thought process are not marked with thetag, but with the 'thinking...' field, which may cause SpringAi to not receive the thought content, resulting in a long wait for a response after sending the request
Previously, I saw that the 'think' parameter was added to version 1.1.0-M4, but upon checking the source code, this field was not present
The following is an example of a request from the Olama official website, which requires carrying the think parameter to control whether the model is thinking or not
curl http://localhost:11434/api/chat -d '{
"model": "qwen3",
"messages": [{
"role": "user",
"content": "How many letter r are in strawberry?"
}],
"think": true,
"stream": false
}'