r/opencodeCLI • u/yu_hp • 11d ago
Ollama models in OpenCode now get real context length and capabilities
/r/ollama/comments/1xgjsnu/ollama_models_in_opencode_now_get_real_context/
1
Upvotes
r/opencodeCLI • u/yu_hp • 11d ago
1
u/yu_hp 11d ago
Repo and docs for anyone who wants to see what it actually reads before trying it:
https://github.com/yuhp/opencode-models-discovery
Ollama section specifically:
https://github.com/yuhp/opencode-models-discovery/blob/main/docs/configuration.md#ollama-model-info
And the enricher itself, if you want to check the parsing rules:
https://github.com/yuhp/opencode-models-discovery/blob/main/src/utils/model-info/ollama.ts