Add Claude Sonnet 5 model support#106
Open
igorvelho wants to merge 2 commits into
Open
Conversation
- Add claude-sonnet-5, claude-sonnet-5-thinking, claude-sonnet-5-1m, claude-sonnet-5-1m-thinking to MODEL_MAPPING in src/constants.ts - Add claude-sonnet-5 and claude-sonnet-5-1m to EFFORT_CAPABLE_MODELS in src/plugin/effort.ts (same tier as claude-sonnet-4.6) - Add claude-sonnet-5 default model definition to src/plugin.ts - Update README.md with claude-sonnet-5 / thinking / 1m model examples Co-authored-by: claude-sonnet-4-6 (opencode)
- Add resolveKiroModel tests for claude-sonnet-5, -thinking, -1m, -1m-thinking slugs - Add supportsEffort tests for claude-sonnet-5 and claude-sonnet-5-1m Co-authored-by: claude-sonnet-5 (opencode)
Contributor
|
@igorvelho May I ask what your region is where you tested it. Like my region is set to eu-central-1 but I get a 400 error |
Author
|
Hi, I've tested in eu-west-1. Using a kiro pro subscription with amazon iam auth |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for the
claude-sonnet-5model family, following the same pattern already established forclaude-sonnet-4-6.Changes
src/constants.ts: Addedclaude-sonnet-5,claude-sonnet-5-thinking,claude-sonnet-5-1m,claude-sonnet-5-1m-thinkingtoMODEL_MAPPING, resolving to Kiro'sclaude-sonnet-5/claude-sonnet-5-1mmodel IDs.src/plugin/effort.ts: Addedclaude-sonnet-5andclaude-sonnet-5-1mtoEFFORT_CAPABLE_MODELS(4-value effort enum, noxhigh— same tier asclaude-sonnet-4.6).src/plugin.ts: Added aclaude-sonnet-5default model definition (1M context, text/image/pdf input) to the plugin's default model list.README.md: Addedclaude-sonnet-5,claude-sonnet-5-thinking,claude-sonnet-5-1m,claude-sonnet-5-1m-thinkingentries to the installation example JSON.resolveKiroModelcoverage for all four new slugs andsupportsEffortcoverage forclaude-sonnet-5/claude-sonnet-5-1m.Testing
npm run typecheck— passesnpm run build— passesbun test— 35 pass, 0 failnpx prettier --check 'src/**/*.ts'— passesopencode.json("plugin": ["/path/to/opencode-kiro-auth"]), authenticated via Kiro, and confirmed OpenCode successfully routed a live request throughkiro/claude-sonnet-5.No breaking changes — existing model mappings and effort resolution are untouched.