add all gpt-5.1 models

This commit is contained in:
jelveh
2025-11-14 23:10:25 -08:00
parent 52978d4dd6
commit 0957dd29e7
2 changed files with 39 additions and 0 deletions
@@ -11,6 +11,36 @@ export const OPEN_AI_MODELS = [
},
max_tokens: 128000,
},
{
id: 'gpt-5.1-codex',
cost: {
currency: 'usd-cents',
tokens: 1_000_000,
input: 125,
output: 1000,
},
max_tokens: 400000,
},
{
id: 'gpt-5.1-codex-mini',
cost: {
currency: 'usd-cents',
tokens: 1_000_000,
input: 25,
output: 200,
},
max_tokens: 400000,
},
{
id: 'gpt-5.1-chat-latest',
cost: {
currency: 'usd-cents',
tokens: 1_000_000,
input: 125,
output: 1000,
},
max_tokens: 400000,
},
{
id: 'gpt-5-2025-08-07',
aliases: ['gpt-5'],
@@ -23,6 +23,15 @@ export const OPENAI_COST_MAP = {
'openai:gpt-5.1:prompt_tokens': 125,
'openai:gpt-5.1:cached_tokens': 13,
'openai:gpt-5.1:completion_tokens': 1000,
'openai:gpt-5.1-codex:prompt_tokens': 125,
'openai:gpt-5.1-codex:cached_tokens': 12.5,
'openai:gpt-5.1-codex:completion_tokens': 1000,
'openai:gpt-5.1-codex-mini:prompt_tokens': 25,
'openai:gpt-5.1-codex-mini:cached_tokens': 3,
'openai:gpt-5.1-codex-mini:completion_tokens': 200,
'openai:gpt-5.1-chat-latest:prompt_tokens': 125,
'openai:gpt-5.1-chat-latest:cached_tokens': 13,
'openai:gpt-5.1-chat-latest:completion_tokens': 1000,
'openai:gpt-5-2025-08-07:prompt_tokens': 125,
'openai:gpt-5-2025-08-07:cached_tokens': 13,
'openai:gpt-5-2025-08-07:completion_tokens': 1000,