[GH-ISSUE #15446] I want to set a default value for temperature. Where should I start? #71931

Closed
opened 2026-05-05 03:00:28 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @zhang9w0v5 on GitHub (Apr 9, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/15446

I'm integrating Ollama with OpenClaw. Where can I configure the default temperature value in Ollama? Is it through environment variables or a configuration file? I honestly can't find the relevant documentation.

Originally created by @zhang9w0v5 on GitHub (Apr 9, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/15446 I'm integrating Ollama with OpenClaw. Where can I configure the default temperature value in Ollama? Is it through environment variables or a configuration file? I honestly can't find the relevant documentation.
GiteaMirror added the feature request label 2026-05-05 03:00:28 -05:00
Author
Owner

@rick-github commented on GitHub (Apr 9, 2026):

There is no server wide default for temperature. You can set it on a per-model basis by setting the parameter in the Modelfile, or via options field in the API call.

<!-- gh-comment-id:4212533983 --> @rick-github commented on GitHub (Apr 9, 2026): There is no server wide default for temperature. You can set it on a per-model basis by setting the parameter in the [Modelfile](https://github.com/ollama/ollama/blob/main/docs/modelfile.mdx#parameter:~:text=repeat_penalty%201.1-,temperature,-The%20temperature%20of), or via [`options`](https://github.com/ollama/ollama/blob/main/docs/api.md#generate-a-chat-completion:~:text=a%20JSON%20schema.-,options,-%3A%20additional%20model%20parameters) field in the API call.
Author
Owner

@zhang9w0v5 commented on GitHub (Apr 9, 2026):

Thanks, the issue has been resolved using Modelfile.

<!-- gh-comment-id:4212764458 --> @zhang9w0v5 commented on GitHub (Apr 9, 2026): Thanks, the issue has been resolved using Modelfile.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#71931