Skip to content
This repository was archived by the owner on Jun 2, 2026. It is now read-only.

Add gpt-5.1 and gpt-5.2 models to modelCapabilities.ts #932

Open
hyperfinitism wants to merge 1 commit into
voideditor:mainfrom
hyperfinitism:feature/gpt-5.1-5.2-support
Open

Add gpt-5.1 and gpt-5.2 models to modelCapabilities.ts #932
hyperfinitism wants to merge 1 commit into
voideditor:mainfrom
hyperfinitism:feature/gpt-5.1-5.2-support

Conversation

@hyperfinitism
Copy link
Copy Markdown

@hyperfinitism hyperfinitism commented Jan 3, 2026

This PR adds support for OpenAI's new gpt-5.1 and gpt-5.2 models by registering them in the default model list and defining their default capability metadata.

What's changed

  • Updated modelCapabilities.ts
    • Added gpt-5.2 and gpt-5.1 to defaultModelsOfProvider.openAI
    • Added default capability configs for both models to openAIModelOptions (tested locally)
    • Updated fallback logic for OpenAI models
    • Updated o3 and gpt-4.1-nano model pricing
    • Unified the formatting
    • Fixed broken link to OpenAI model list at comment line

@hyperfinitism hyperfinitism force-pushed the feature/gpt-5.1-5.2-support branch from e9915ce to c00c57d Compare January 4, 2026 10:06
Signed-off-by: Takuma IMAMURA <209989118+hyperfinitism@users.noreply.github.com>
@hyperfinitism hyperfinitism force-pushed the feature/gpt-5.1-5.2-support branch from c00c57d to 7d8037c Compare January 4, 2026 13:06
@andrewpareles andrewpareles force-pushed the main branch 11 times, most recently from 360390b to b3166e7 Compare June 2, 2026 22:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant