Skip to content

Commit 064a5e6

Browse files
committed
Update OpenAI model max_tokens and cost map values
1 parent 968150d commit 064a5e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/backend/src/modules/puterai/OpenAiCompletionService/models.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const OPEN_AI_MODELS = [
1919
input: 125,
2020
output: 1000,
2121
},
22-
max_tokens: 400000,
22+
max_tokens: 128000,
2323
},
2424
{
2525
id: 'gpt-5.1-codex-mini',
@@ -29,7 +29,7 @@ export const OPEN_AI_MODELS = [
2929
input: 25,
3030
output: 200,
3131
},
32-
max_tokens: 400000,
32+
max_tokens: 128000,
3333
},
3434
{
3535
id: 'gpt-5.1-chat-latest',
@@ -39,7 +39,7 @@ export const OPEN_AI_MODELS = [
3939
input: 125,
4040
output: 1000,
4141
},
42-
max_tokens: 400000,
42+
max_tokens: 16384,
4343
},
4444
{
4545
id: 'gpt-5-2025-08-07',

src/backend/src/services/MeteringService/costMaps/openAiCostMap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const OPENAI_COST_MAP = {
2424
'openai:gpt-5.1:cached_tokens': 13,
2525
'openai:gpt-5.1:completion_tokens': 1000,
2626
'openai:gpt-5.1-codex:prompt_tokens': 125,
27-
'openai:gpt-5.1-codex:cached_tokens': 12.5,
27+
'openai:gpt-5.1-codex:cached_tokens': 13,
2828
'openai:gpt-5.1-codex:completion_tokens': 1000,
2929
'openai:gpt-5.1-codex-mini:prompt_tokens': 25,
3030
'openai:gpt-5.1-codex-mini:cached_tokens': 3,

0 commit comments

Comments
 (0)