Skip to content

Commit 85ee125

Browse files
Merge pull request #32 from charmbracelet/gpt5
feat: add gpt-5
2 parents 97c08f9 + c0dc485 commit 85ee125

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

internal/providers/configs/openai.json

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,51 @@
44
"type": "openai",
55
"api_key": "$OPENAI_API_KEY",
66
"api_endpoint": "$OPENAI_API_ENDPOINT",
7-
"default_large_model_id": "o4-mini",
7+
"default_large_model_id": "gpt-5",
88
"default_small_model_id": "gpt-4o",
99
"models": [
10+
{
11+
"id": "gpt-5",
12+
"name": "GPT-5",
13+
"cost_per_1m_in": 1.25,
14+
"cost_per_1m_out": 10,
15+
"cost_per_1m_in_cached": 0.25,
16+
"cost_per_1m_out_cached": 0.25,
17+
"context_window": 400000,
18+
"default_max_tokens": 128000,
19+
"can_reason": true,
20+
"has_reasoning_effort": true,
21+
"default_reasoning_effort": "minimal",
22+
"supports_attachments": true
23+
},
24+
{
25+
"id": "gpt-5-mini",
26+
"name": "GPT-5 Mini",
27+
"cost_per_1m_in": 0.25,
28+
"cost_per_1m_out": 2,
29+
"cost_per_1m_in_cached": 0.025,
30+
"cost_per_1m_out_cached": 0.025,
31+
"context_window": 400000,
32+
"default_max_tokens": 128000,
33+
"can_reason": true,
34+
"has_reasoning_effort": true,
35+
"default_reasoning_effort": "low",
36+
"supports_attachments": true
37+
},
38+
{
39+
"id": "gpt-5-nano",
40+
"name": "GPT-5 Nano",
41+
"cost_per_1m_in": 0.05,
42+
"cost_per_1m_out": 0.4,
43+
"cost_per_1m_in_cached": 0.005,
44+
"cost_per_1m_out_cached": 0.005,
45+
"context_window": 400000,
46+
"default_max_tokens": 128000,
47+
"can_reason": true,
48+
"has_reasoning_effort": true,
49+
"default_reasoning_effort": "low",
50+
"supports_attachments": true
51+
},
1052
{
1153
"id": "o4-mini",
1254
"name": "o4 Mini",

0 commit comments

Comments
 (0)