fix(onboard): honor provider model env for Ollama#6873
Conversation
Signed-off-by: HwangJohn <angelic805@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughOllama onboarding now resolves model requests from ChangesOllama model selection
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/lib/onboard/setup-nim-ollama.test.ts`:
- Around line 112-115: Update the injected process.env in the fallback test to
explicitly set NEMOCLAW_MODEL to undefined, ensuring the fallback uses
NEMOCLAW_PROVIDER_MODEL regardless of the host environment. Preserve the
existing environment spread and provider-model setup.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 41f9d7eb-e396-4b07-892b-ad24a6d3ebb4
📒 Files selected for processing (8)
docs/inference/set-up-ollama.mdxsrc/lib/inference/ollama/proxy.test.tssrc/lib/inference/ollama/proxy.tssrc/lib/onboard.tssrc/lib/onboard/providers.test.tssrc/lib/onboard/providers.tssrc/lib/onboard/setup-nim-ollama.test.tssrc/lib/onboard/setup-nim-ollama.ts
Signed-off-by: HwangJohn <angelic805@gmail.com>
PR Review Advisor — InformationalAdvisor assessment: Informational / medium confidence Model lanes
Nemotron output stays in workflow artifacts and does not change the assessment above. E2E guidanceAdvisory only. E2E / PR Gate selects and runs jobs independently. Recommended E2E: 1 optional E2E recommendation
1 warning · 0 suggestionsWarningsWarnings do not block.
|
Signed-off-by: HwangJohn <angelic805@gmail.com>
Summary
Honor
NEMOCLAW_PROVIDER_MODELas a compatibility fallback for Ollama onboarding while keepingNEMOCLAW_MODELas the preferred model env. Interactive Ollama selection now defaults to the requested model when that model appears in the rendered menu, instead of falling back to the memory-based or alphabetically-first default.Related Issue
Fixes #6869
Changes
NEMOCLAW_MODELand falls back toNEMOCLAW_PROVIDER_MODELfor non-interactive provider selection.NEMOCLAW_PROVIDER_MODELcompatibility fallback for Ollama and add regression coverage for env precedence, interactive defaults, and hidden requested models.Type of Change
Quality Gates
Verification
Verifiedin GitHubpre-commit,commit-msg, andpre-pushhooks passed, ornpm run check:diffpassed when hooks were skipped or unavailable —npm run check:diffpassed on DGX Spark Linux/aarch64 against the committed diffnpx vitest run --project cli src/lib/inference/ollama/proxy.test.ts src/lib/onboard/setup-nim-ollama.test.ts src/lib/onboard/providers.test.tspassed locally on Windows and on DGX Spark Linux/aarch64 (71 passed)npm testfor broad runtime/test-harness changes;npm run checkfor repo-wide validation/coverage changes — not applicable; this is a focused onboarding/inference env handling change covered by targeted tests, docs build, CLI build, and diff gatenpm run docsbuilds without warnings (doc changes only) —npm run docspassed on DGX Spark Linux/aarch64 with 0 errors; Fern reported existing hidden warnings/upgrade notice, so this box is left uncheckedSigned-off-by: HwangJohn angelic805@gmail.com
Summary by CodeRabbit
NEMOCLAW_PROVIDER_MODEL.NEMOCLAW_PROVIDER_MODELand the interactive/non-interactive default-model fallback behavior.