Originally created by @ErroneousBosch on GitHub (May 7, 2025).
Check Existing Issues
I have searched the existing issues and discussions.
Problem Description
While Ollama defaults to a 2048 context length on many things, custom models can have higher, and some stock models ship with larger contexts such as qwen3 (which has a 40960 context window).
It does have some idiosyncrasies in that these keys are prefixed with the model name, but that is surmountable.
Alternatives Considered
No response
Additional Context
No response
Originally created by @ErroneousBosch on GitHub (May 7, 2025).
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
### Problem Description
While Ollama defaults to a 2048 context length on many things, custom models can have higher, and some stock models ship with larger contexts such as qwen3 (which has a 40960 context window).
### Desired Solution you'd like
Rather than having to set these manually, it would be better to have OpenWebUI configure this and other model-specific options options via an API call to `/api/show`. This is described in their documentation: https://www.postman.com/postman-student-programs/ollama-api/documentation/suc47x8/ollama-rest-api
It does have some idiosyncrasies in that these keys are prefixed with the model name, but that is surmountable.
### Alternatives Considered
_No response_
### Additional Context
_No response_
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @ErroneousBosch on GitHub (May 7, 2025).
Check Existing Issues
Problem Description
While Ollama defaults to a 2048 context length on many things, custom models can have higher, and some stock models ship with larger contexts such as qwen3 (which has a 40960 context window).
Desired Solution you'd like
Rather than having to set these manually, it would be better to have OpenWebUI configure this and other model-specific options options via an API call to
/api/show. This is described in their documentation: https://www.postman.com/postman-student-programs/ollama-api/documentation/suc47x8/ollama-rest-apiIt does have some idiosyncrasies in that these keys are prefixed with the model name, but that is surmountable.
Alternatives Considered
No response
Additional Context
No response