Skip to content

Commit 4e49abc

Browse files
committed
feat: add Kiro provider
1 parent 7d77118 commit 4e49abc

13 files changed

Lines changed: 241 additions & 1 deletion

packages/core/src/schema.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ export const Provider = z
150150
const isOpenAIcompatible = data.npm === "@ai-sdk/openai-compatible";
151151
const isOpenrouter = data.npm === "@openrouter/ai-sdk-provider";
152152
const isAnthropic = data.npm === "@ai-sdk/anthropic";
153+
const isKiro = data.npm === "kiro";
153154
const hasApi = data.api !== undefined;
154155

155156
return (
@@ -161,17 +162,20 @@ export const Provider = z
161162
isAnthropic ||
162163
// openai: api optional (always allowed)
163164
isOpenAI ||
165+
// kiro: api optional (always allowed)
166+
isKiro ||
164167
// all others: must NOT have api
165168
(!isOpenAI &&
166169
!isOpenAIcompatible &&
167170
!isOpenrouter &&
168171
!isAnthropic &&
172+
!isKiro &&
169173
!hasApi)
170174
);
171175
},
172176
{
173177
message:
174-
"'api' is required for openai-compatible and openrouter, optional for anthropic and openai, forbidden otherwise",
178+
"'api' is required for openai-compatible and openrouter, optional for anthropic, openai, and kiro, forbidden otherwise",
175179
path: ["api"],
176180
},
177181
);

providers/kiro/models/auto.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name = "Auto"
2+
family = "claude-sonnet"
3+
release_date = "2026-03-23"
4+
last_updated = "2026-03-23"
5+
attachment = true
6+
reasoning = false
7+
temperature = true
8+
tool_call = true
9+
open_weights = false
10+
11+
[cost]
12+
input = 0
13+
output = 0
14+
15+
[limit]
16+
context = 1_000_000
17+
output = 64_000
18+
19+
[modalities]
20+
input = ["text", "image"]
21+
output = ["text"]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name = "Claude Haiku 4.5"
2+
family = "claude-haiku"
3+
release_date = "2026-03-23"
4+
last_updated = "2026-03-23"
5+
attachment = true
6+
reasoning = false
7+
temperature = true
8+
tool_call = true
9+
open_weights = false
10+
11+
[cost]
12+
input = 0
13+
output = 0
14+
15+
[limit]
16+
context = 200_000
17+
output = 64_000
18+
19+
[modalities]
20+
input = ["text", "image"]
21+
output = ["text"]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name = "Claude Opus 4.5"
2+
family = "claude-opus"
3+
release_date = "2026-03-23"
4+
last_updated = "2026-03-23"
5+
attachment = true
6+
reasoning = false
7+
temperature = true
8+
tool_call = true
9+
open_weights = false
10+
11+
[cost]
12+
input = 0
13+
output = 0
14+
15+
[limit]
16+
context = 200_000
17+
output = 64_000
18+
19+
[modalities]
20+
input = ["text", "image"]
21+
output = ["text"]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name = "Claude Opus 4.6"
2+
family = "claude-opus"
3+
release_date = "2026-03-23"
4+
last_updated = "2026-03-23"
5+
attachment = true
6+
reasoning = false
7+
temperature = true
8+
tool_call = true
9+
open_weights = false
10+
11+
[cost]
12+
input = 0
13+
output = 0
14+
15+
[limit]
16+
context = 1_000_000
17+
output = 64_000
18+
19+
[modalities]
20+
input = ["text", "image"]
21+
output = ["text"]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name = "Claude Sonnet 4.5"
2+
family = "claude-sonnet"
3+
release_date = "2026-03-23"
4+
last_updated = "2026-03-23"
5+
attachment = true
6+
reasoning = false
7+
temperature = true
8+
tool_call = true
9+
open_weights = false
10+
11+
[cost]
12+
input = 0
13+
output = 0
14+
15+
[limit]
16+
context = 200_000
17+
output = 64_000
18+
19+
[modalities]
20+
input = ["text", "image"]
21+
output = ["text"]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name = "Claude Sonnet 4.6"
2+
family = "claude-sonnet"
3+
release_date = "2026-03-23"
4+
last_updated = "2026-03-23"
5+
attachment = true
6+
reasoning = false
7+
temperature = true
8+
tool_call = true
9+
open_weights = false
10+
11+
[cost]
12+
input = 0
13+
output = 0
14+
15+
[limit]
16+
context = 1_000_000
17+
output = 64_000
18+
19+
[modalities]
20+
input = ["text", "image"]
21+
output = ["text"]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name = "Claude Sonnet 4"
2+
family = "claude-sonnet"
3+
release_date = "2026-03-23"
4+
last_updated = "2026-03-23"
5+
attachment = true
6+
reasoning = false
7+
temperature = true
8+
tool_call = true
9+
open_weights = false
10+
11+
[cost]
12+
input = 0
13+
output = 0
14+
15+
[limit]
16+
context = 200_000
17+
output = 64_000
18+
19+
[modalities]
20+
input = ["text", "image"]
21+
output = ["text"]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name = "Deepseek v3.2"
2+
family = "deepseek"
3+
release_date = "2026-03-23"
4+
last_updated = "2026-03-23"
5+
attachment = true
6+
reasoning = false
7+
temperature = true
8+
tool_call = true
9+
open_weights = true
10+
11+
[cost]
12+
input = 0
13+
output = 0
14+
15+
[limit]
16+
context = 164_000
17+
output = 64_000
18+
19+
[modalities]
20+
input = ["text", "image"]
21+
output = ["text"]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name = "MiniMax M2.1"
2+
family = "minimax"
3+
release_date = "2026-03-23"
4+
last_updated = "2026-03-23"
5+
attachment = true
6+
reasoning = false
7+
temperature = true
8+
tool_call = true
9+
open_weights = true
10+
11+
[cost]
12+
input = 0
13+
output = 0
14+
15+
[limit]
16+
context = 196_000
17+
output = 64_000
18+
19+
[modalities]
20+
input = ["text", "image"]
21+
output = ["text"]

0 commit comments

Comments
 (0)