add gpt 5.3 codex and gpt 5.4 (#2618)

* add gpt 5.3 codex and gpt 5.4

* add gemini 3.1 pro preview
This commit is contained in:
ProgrammerIn-wonderland
2026-03-06 16:59:39 -08:00
committed by GitHub
parent a861c3e27a
commit a0fc1bca30
2 changed files with 62 additions and 0 deletions
@@ -134,6 +134,28 @@ export const GEMINI_MODELS: IChatModel[] = [
},
max_tokens: 200_000,
},
{
puterId: 'google:google/gemini-3.1-pro-preview',
id: 'gemini-3.1-pro-preview',
modalities: { 'input': ['text', 'image', 'video', 'audio', 'pdf'], 'output': ['text'] },
open_weights: false,
tool_call: true,
knowledge: '2025-01',
release_date: '2026-02-19',
name: 'Gemini 3.1 Pro Preview',
aliases: ['google/gemini-3.1-pro-preview'],
context: 1_048_576,
costs_currency: 'usd-cents',
input_cost_key: 'prompt_tokens',
output_cost_key: 'completion_tokens',
costs: {
tokens: 1_000_000,
prompt_tokens: 200,
completion_tokens: 1200,
cached_tokens: 20,
},
max_tokens: 65536,
},
{
puterId: 'google:google/gemini-3-flash-preview',
id: 'gemini-3-flash-preview',
@@ -4,6 +4,46 @@ import { IChatModel } from '../types';
// Hardcoded from https://models.dev/api.json
export const OPEN_AI_MODELS: IChatModel[] = [
{
puterId: 'openai:openai/gpt-5.4',
id: 'gpt-5.4-2026-03-05',
modalities: { 'input': ['text', 'image'], 'output': ['text'] },
open_weights: false,
tool_call: true,
knowledge: '2025-08-31',
release_date: '2026-03-05',
aliases: ['gpt-5.4', 'openai/gpt-5.4'],
costs_currency: 'usd-cents',
input_cost_key: 'prompt_tokens',
output_cost_key: 'completion_tokens',
costs: {
tokens: 1_000_000,
prompt_tokens: 250,
cached_tokens: 25,
completion_tokens: 1500,
},
max_tokens: 1_050_000, // this is used for context length calculations so its misnamed from when OpenAI max_tokens and content_length were the same value
},
{
puterId: 'openai:openai/gpt-5.3-codex',
id: 'gpt-5.3-codex',
modalities: { 'input': ['text', 'image'], 'output': ['text'] },
open_weights: false,
tool_call: true,
knowledge: '2025-08-31',
aliases: ['openai/gpt-5.3-codex'],
costs_currency: 'usd-cents',
input_cost_key: 'prompt_tokens',
output_cost_key: 'completion_tokens',
costs: {
tokens: 1_000_000,
prompt_tokens: 175,
cached_tokens: 17.5,
completion_tokens: 1400,
},
max_tokens: 128000,
responses_api_only: true,
},
{
puterId: 'openai:openai/gpt-5.2-codex',
id: 'gpt-5.2-codex',