Conversation
A llama.context_length of 4096 was treated as missing, so parameters num_ctx replaced it.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: off-grid-ai/OGAM/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe Ollama capability extractor now distinguishes an explicitly reported context length of 4096 from a missing context length. It uses ChangesOllama context length
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change retains an explicitly reported 4096 context instead of replacing it with num_ctx 16384. The supplied review context identifies no remaining merge-blocking risk. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 ESLint
__tests__/unit/stores/remoteModelCapabilities.test.tsOops! Something went wrong! :( ESLint: 8.57.1 Error: .eslintrc.js » src/stores/remoteModelCapabilities.tsESLint skipped: the matched ESLint configuration already failed (config-incompatibility). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



Summary
fetchRemoteModelInfoof an Ollama model whosellama.context_lengthis4096, with parametersnum_ctx 16384, returned16384.4096was both the fallback and a real context, so a reported4096was treated as missing. An emptymodel_infostill usesnum_ctx. An8192context still stays8192.Test plan
npx jest __tests__/unit/stores/remoteModelCapabilities.test.ts -t "keeps a reported 4096"model_infofallback still returns16384.Summary by CodeRabbit
num_ctxvalue is configured.num_ctxvalue is available, the context length defaults to 4096 tokens.