We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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?