Skip to content

Commit 32e0bb1

Browse files
authored
Merge pull request #78 from rajbos/copilot/update-copilot-supported-models
Add missing GitHub Copilot AI models to configuration
2 parents 0513e30 + a78483b commit 32e0bb1

File tree

2 files changed

+74
-1
lines changed

2 files changed

+74
-1
lines changed

src/modelPricing.json

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,45 @@
2929
},
3030
"pricing": {
3131
"gpt-5": {
32+
"inputCostPerMillion": 1.25,
33+
"outputCostPerMillion": 10.0,
34+
"category": "GPT-5 models"
35+
},
36+
"gpt-5-codex": {
37+
"inputCostPerMillion": 1.25,
38+
"outputCostPerMillion": 10.0,
39+
"category": "GPT-5 models"
40+
},
41+
"gpt-5-mini": {
42+
"inputCostPerMillion": 0.25,
43+
"outputCostPerMillion": 2.0,
44+
"category": "GPT-5 models"
45+
},
46+
"gpt-5.1": {
47+
"inputCostPerMillion": 1.25,
48+
"outputCostPerMillion": 10.0,
49+
"category": "GPT-5 models"
50+
},
51+
"gpt-5.1-codex": {
52+
"inputCostPerMillion": 1.25,
53+
"outputCostPerMillion": 10.0,
54+
"category": "GPT-5 models"
55+
},
56+
"gpt-5.1-codex-max": {
3257
"inputCostPerMillion": 1.75,
3358
"outputCostPerMillion": 14.0,
3459
"category": "GPT-5 models"
3560
},
36-
"gpt-5-mini": {
61+
"gpt-5.1-codex-mini": {
3762
"inputCostPerMillion": 0.25,
3863
"outputCostPerMillion": 2.0,
3964
"category": "GPT-5 models"
4065
},
66+
"gpt-5.2": {
67+
"inputCostPerMillion": 1.75,
68+
"outputCostPerMillion": 14.0,
69+
"category": "GPT-5 models"
70+
},
4171
"gpt-4": {
4272
"inputCostPerMillion": 3.0,
4373
"outputCostPerMillion": 12.0,
@@ -78,11 +108,31 @@
78108
"outputCostPerMillion": 15.0,
79109
"category": "Claude models (Anthropic)"
80110
},
111+
"claude-sonnet-4.5": {
112+
"inputCostPerMillion": 3.0,
113+
"outputCostPerMillion": 15.0,
114+
"category": "Claude models (Anthropic)"
115+
},
81116
"claude-haiku": {
82117
"inputCostPerMillion": 0.25,
83118
"outputCostPerMillion": 1.25,
84119
"category": "Claude models (Anthropic)"
85120
},
121+
"claude-haiku-4.5": {
122+
"inputCostPerMillion": 1.0,
123+
"outputCostPerMillion": 5.0,
124+
"category": "Claude models (Anthropic)"
125+
},
126+
"claude-opus-4.1": {
127+
"inputCostPerMillion": 15.0,
128+
"outputCostPerMillion": 75.0,
129+
"category": "Claude models (Anthropic)"
130+
},
131+
"claude-opus-4.5": {
132+
"inputCostPerMillion": 5.0,
133+
"outputCostPerMillion": 25.0,
134+
"category": "Claude models (Anthropic)"
135+
},
86136
"o3-mini": {
87137
"inputCostPerMillion": 4.0,
88138
"outputCostPerMillion": 16.0,
@@ -112,6 +162,16 @@
112162
"inputCostPerMillion": 2.0,
113163
"outputCostPerMillion": 12.0,
114164
"category": "Google Gemini models"
165+
},
166+
"grok-code-fast-1": {
167+
"inputCostPerMillion": 0.20,
168+
"outputCostPerMillion": 1.50,
169+
"category": "xAI Grok models"
170+
},
171+
"raptor-mini": {
172+
"inputCostPerMillion": 0.25,
173+
"outputCostPerMillion": 2.0,
174+
"category": "GitHub Copilot fine-tuned models"
115175
}
116176
}
117177
}

src/tokenEstimators.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,26 @@
88
"gpt-4o-mini": 0.25,
99
"gpt-3.5-turbo": 0.25,
1010
"gpt-5": 0.25,
11+
"gpt-5-codex": 0.25,
12+
"gpt-5-mini": 0.25,
13+
"gpt-5.1": 0.25,
14+
"gpt-5.1-codex": 0.25,
15+
"gpt-5.1-codex-max": 0.25,
16+
"gpt-5.1-codex-mini": 0.25,
17+
"gpt-5.2": 0.25,
1118
"claude-sonnet-3.5": 0.24,
1219
"claude-sonnet-3.7": 0.24,
1320
"claude-sonnet-4": 0.24,
21+
"claude-sonnet-4.5": 0.24,
1422
"claude-haiku": 0.24,
23+
"claude-haiku-4.5": 0.24,
24+
"claude-opus-4.1": 0.24,
25+
"claude-opus-4.5": 0.24,
1526
"gemini-2.5-pro": 0.25,
1627
"gemini-3-flash": 0.25,
1728
"gemini-3-pro": 0.25,
29+
"grok-code-fast-1": 0.25,
30+
"raptor-mini": 0.25,
1831
"o3-mini": 0.25,
1932
"o4-mini": 0.25
2033
}

0 commit comments

Comments
 (0)