Skip to content

fix(models): let the bot switch its own model by label or level - #637

Merged
mateuscmtropical merged 1 commit into
mainfrom
fix/models-set-hint
Nov 18, 2026
Merged

mateuscmtropical merged 1 commit into
mainfrom
fix/models-set-hint

Conversation

@mateuscmtropical

Copy link
Copy Markdown
Owner

Summary

models_set on a non-Claude provider now accepts an ID, a label, or an ID with a level such as gemini-4-hydrogen-xhigh, which also sets the effort. A refused model or effort names what is on offer so the bot can retry. The prompt tells the bot to change its own model with the tool on any provider.

Closes #636

Type of change

  • Bug fix
  • New feature
  • Improvement
  • Breaking change
  • Documentation
  • Maintenance (tooling, CI, dependencies)

How it was tested

pnpm check passes apart from two timing tests that fail under load and pass alone. A new unit test covers label, level and the refusal text.

Checklist

  • pnpm check passes
  • Tests added or updated
  • Docs updated (README, docs/, or CHANGELOG.md for user-facing changes)

@mateuscmtropical
mateuscmtropical merged commit 75a696e into main Nov 18, 2026
10 checks passed
@mateuscmtropical
mateuscmtropical deleted the fix/models-set-hint branch November 18, 2026 21:05
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.

The bot cannot switch to a Gemini 4 model from the chat

1 participant