JS ollama SDK version is 0.5.16.
ChatRequest.think=true does not enable model deep thinking. My workaroud is as follows:
// Create streaming chat completion
const response = await client.chat({
model: modelName,
messages: messages,
stream: true,
think: deepThinkingEnabled ? undefined : false, // XXX: `true` is enabling deep thinking mode in Ollama, is it a bug?
options: {
temperature: modelParams.temperature,
top_p: modelParams.topP,
},
});
However, I think it's a bug?