fix: Update demo CLI to use ModelRegistry.resolve pattern (#228)#229
fix: Update demo CLI to use ModelRegistry.resolve pattern (#228)#229andreasronge merged 1 commit intomainfrom
Conversation
Replace legacy Map.get(presets, name) with ModelRegistry.resolve(1) in the /model command handler. This aligns with the pattern used in JsonCLI and LispCLI, ensuring consistent model resolution across all CLI tools with explicit error handling. Closes #228 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
PR Review: fix: Update demo CLI to use ModelRegistry.resolve patternSummarySmall tech-debt cleanup that aligns What's Good
Issues (Must Fix)None identified. Suggestions (Optional)None - the PR does exactly what's needed, no more, no less. SecurityNo concerns. The change is internal to demo code and doesn't affect any validation logic. DocumentationNo updates needed. This is an internal refactor to demo CLI code; the public-facing behavior (model switching) is unchanged. VerdictApprove - Clean, mechanical change that brings |
Auto-Triage SummaryReview AnalysisThe automated PR review found zero issues requiring action:
VerdictApprove - Clean, mechanical change that brings Status
This PR is ready to merge pending CI checks. |
Summary
Replace legacy
Map.get(presets, name)pattern withModelRegistry.resolve/1in the/modelcommand handler ofdemo/lib/ptc_demo/cli.ex. This aligns with the pattern already used inJsonCLIandLispCLI.Changes
handle_input("/model " <> name)function to usePtcDemo.ModelRegistry.resolve/1Closes #228