[PR #18] [MERGED] feat: add Claude Sonnet 4.6 and Opus 4.6 model support #13

Closed
opened 2026-02-27 15:47:40 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Quorinex/Kiro-Go/pull/18
Author: @edxeth
Created: 2/20/2026
Status: Merged
Merged: 2/21/2026
Merged by: @Quorinex

Base: mainHead: feat/add-claude-4.6-models


📝 Commits (1)

  • e3b99ab feat: add Claude Sonnet 4.6 and Opus 4.6 to model list and mapping

📊 Changes

2 files changed (+73 additions, -67 deletions)

View changed files

📝 proxy/handler.go (+53 -49)
📝 proxy/translator.go (+20 -18)

📄 Description

Summary

  • Add claude-sonnet-4.6 (dot and dash variants) to modelMap in translator.go — was previously missing while claude-opus-4.6 was already present
  • Add claude-sonnet-4.6 and claude-opus-4.6 (plus their -thinking variants) to the static fallback model list in handler.go, used when the dynamic Kiro API cache is not populated

Context

These models are available on Kiro Power (enterprise) subscriptions but were absent from the proxy's hardcoded fallback list and model mapping, causing them to not appear in /v1/models and not route correctly.

Testing

  • go build passes cleanly
  • /v1/models returns all new model entries including thinking variants
  • Model routing resolves claude-sonnet-4.6, claude-sonnet-4-6, and claude-sonnet-4.6-thinking correctly

Note

The existing ParseModelAndThinking function uses strings.Contains with Go map iteration (nondeterministic order), which means overlapping keys like claude-sonnet-4 and claude-sonnet-4.6 could theoretically mis-route. This is a pre-existing issue not introduced by this PR and is left for a separate fix.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Quorinex/Kiro-Go/pull/18 **Author:** [@edxeth](https://github.com/edxeth) **Created:** 2/20/2026 **Status:** ✅ Merged **Merged:** 2/21/2026 **Merged by:** [@Quorinex](https://github.com/Quorinex) **Base:** `main` ← **Head:** `feat/add-claude-4.6-models` --- ### 📝 Commits (1) - [`e3b99ab`](https://github.com/Quorinex/Kiro-Go/commit/e3b99abab0b5a2b79de45e4f8d78bdefdf43f39b) feat: add Claude Sonnet 4.6 and Opus 4.6 to model list and mapping ### 📊 Changes **2 files changed** (+73 additions, -67 deletions) <details> <summary>View changed files</summary> 📝 `proxy/handler.go` (+53 -49) 📝 `proxy/translator.go` (+20 -18) </details> ### 📄 Description ## Summary - Add `claude-sonnet-4.6` (dot and dash variants) to `modelMap` in `translator.go` — was previously missing while `claude-opus-4.6` was already present - Add `claude-sonnet-4.6` and `claude-opus-4.6` (plus their `-thinking` variants) to the static fallback model list in `handler.go`, used when the dynamic Kiro API cache is not populated ## Context These models are available on Kiro Power (enterprise) subscriptions but were absent from the proxy's hardcoded fallback list and model mapping, causing them to not appear in `/v1/models` and not route correctly. ## Testing - `go build` passes cleanly - `/v1/models` returns all new model entries including thinking variants - Model routing resolves `claude-sonnet-4.6`, `claude-sonnet-4-6`, and `claude-sonnet-4.6-thinking` correctly ## Note The existing `ParseModelAndThinking` function uses `strings.Contains` with Go map iteration (nondeterministic order), which means overlapping keys like `claude-sonnet-4` and `claude-sonnet-4.6` could theoretically mis-route. This is a **pre-existing issue** not introduced by this PR and is left for a separate fix. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 15:47:40 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Kiro-Go#13
No description provided.