Repository navigation
Pick a model by number in /models and /model; /context says why it stops at 256K - #142
Merged
Merged
Conversation
…ops at 256K /models and /model (with no name) show the models table numbered, catalog first, then the other installed Ollama models that can chat and call tools, and ask which to switch to: no second /model <name>. /model 2 switches straight away; names still work; one that isn't installed says how to get it. Embedding models are left out even when Ollama lists 'tools' for them. /context explains the sizes it doesn't offer: Ollama caps the window at what the model was trained on (256K for qwen3.6-35b) whatever the memory, so a 512K or 1M setting would only look larger. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The user wanted to pick a model straight from the
/modelslist, and not have to type/model <name>afterwards. They also asked for 512K and 1M context options for qwen3.6-35b.What changes
/modelsand/model(with no name)#column and ask "Switch to which model? (number or name, Enter to keep …)"./model 2or/models 2switches straight away. Names still work.lcode setup <key>).Embedding models are left out. Ollama lists
toolsforqwen3-embedding:0.6b(it's in its template) but notcompletion, so lcode requires both./contextsays why the list stops where it does: "Not offered: 512K and 1M. lcode-qwen3.6-35b was trained on up to 256K tokens, and Ollama caps the window there whatever the memory…".requested context size too large for modeland capsnum_ctxatn_ctx_train, and the GGUF has no RoPE-scaling (YaRN) keys.lcode modelsin a shell keeps its table without numbers.Checks
tests/test_model_picker.py(7 tests), plus a numbered served list intests/test_backends.py. The full suite and the strict docs build pass./modelsthen6switched to qwen3.5:9b;/modelthen Enter kept it;/model 1switched back at 256K;/contextshowed the note.🤖 Generated with Claude Code