Skip to content

Commit 304e2d5

Browse files
committed
feat: add Kiro provider
1 parent b64c210 commit 304e2d5

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
@@ -112,6 +112,7 @@ export const Provider = z
112112
const isOpenAIcompatible = data.npm === "@ai-sdk/openai-compatible";
113113
const isOpenrouter = data.npm === "@openrouter/ai-sdk-provider";
114114
const isAnthropic = data.npm === "@ai-sdk/anthropic";
115+
const isKiro = data.npm === "kiro";
115116
const hasApi = data.api !== undefined;
116117

117118
return (
@@ -123,17 +124,20 @@ export const Provider = z
123124
isAnthropic ||
124125
// openai: api optional (always allowed)
125126
isOpenAI ||
127+
// kiro: api optional (always allowed)
128+
isKiro ||
126129
// all others: must NOT have api
127130
(!isOpenAI &&
128131
!isOpenAIcompatible &&
129132
!isOpenrouter &&
130133
!isAnthropic &&
134+
!isKiro &&
131135
!hasApi)
132136
);
133137
},
134138
{
135139
message:
136-
"'api' is required for openai-compatible and openrouter, optional for anthropic and openai, forbidden otherwise",
140+
"'api' is required for openai-compatible and openrouter, optional for anthropic, openai, and kiro, forbidden otherwise",
137141
path: ["api"],
138142
},
139143
);

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)