[PR #13758] [CLOSED] docs: update context length configuration via environment variables and chat mode #24917

Closed
opened 2026-04-19 17:53:29 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13758
Author: @maternion
Created: 1/17/2026
Status: Closed

Base: mainHead: main


📄 Description

This PR expands the context length documentation to cover configuration methods that are already supported but not clearly documented.

It distinguishes between:

  • Global configuration using the OLLAMA_CONTEXT_LENGTH environment variable
  • Per-model configuration during interactive sessions via ollama run, including how to persist changes with /save

Also, updated CLI docs for the new multi-line changes. If the functionality intended is different from what I have written then please do inform, will update it.

This should help users better understand when each approach is appropriate.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/13758 **Author:** [@maternion](https://github.com/maternion) **Created:** 1/17/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📄 Description This PR expands the context length documentation to cover configuration methods that are already supported but not clearly documented. It distinguishes between: - Global configuration using the `OLLAMA_CONTEXT_LENGTH` environment variable - Per-model configuration during interactive sessions via `ollama run`, including how to persist changes with `/save` Also, updated CLI docs for the new multi-line changes. If the functionality intended is different from what I have written then please do inform, will update it. This should help users better understand when each approach is appropriate. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-19 17:53:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#24917