Skip to content

feat: add model/provider switcher to exercise view#105

Open
crgeee wants to merge 1 commit into
mainfrom
feat/model-switcher
Open

feat: add model/provider switcher to exercise view#105
crgeee wants to merge 1 commit into
mainfrom
feat/model-switcher

Conversation

@crgeee

@crgeee crgeee commented Mar 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds ModelSwitcher component — compact dropdown showing current AI model in the exercise header
  • Users can switch provider (Anthropic/OpenAI) and model on the fly
  • Persists selection to localStorage via existing setAiConfig()

Test plan

  • Open an exercise in Learn, verify current model shows in header
  • Click the model pill, verify dropdown lists all providers/models
  • Switch to a different model, verify it persists on page reload
  • Click outside the dropdown to dismiss it
  • Verify AI exercise generation uses the newly selected model

🤖 Generated with Claude Code

Adds a compact dropdown in the exercise header that shows the current
AI model and lets users switch provider/model on the fly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant