Add OpenRouter GPT-4.1 models to projects mode (#1832)

This commit is contained in:
Logan Yang 2025-09-22 00:39:58 -07:00 committed by GitHub
parent dd7e9e185f
commit 09124e19e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -152,6 +152,8 @@ export enum ChatModels {
OPENROUTER_GEMINI_2_5_FLASH = "google/gemini-2.5-flash",
OPENROUTER_GEMINI_2_5_PRO = "google/gemini-2.5-pro",
OPENROUTER_GEMINI_2_5_FLASH_LITE = "google/gemini-2.5-flash-lite",
OPENROUTER_GPT_41 = "openai/gpt-4.1",
OPENROUTER_GPT_41_MINI = "openai/gpt-4.1-mini",
}
// Model Providers
@ -222,6 +224,24 @@ export const BUILTIN_CHAT_MODELS: CustomModel[] = [
projectEnabled: true,
capabilities: [ModelCapability.VISION],
},
{
name: ChatModels.OPENROUTER_GPT_41,
provider: ChatModelProviders.OPENROUTERAI,
enabled: true,
isBuiltIn: true,
core: false,
projectEnabled: true,
capabilities: [ModelCapability.VISION],
},
{
name: ChatModels.OPENROUTER_GPT_41_MINI,
provider: ChatModelProviders.OPENROUTERAI,
enabled: true,
isBuiltIn: true,
core: false,
projectEnabled: true,
capabilities: [ModelCapability.VISION],
},
{
name: ChatModels.GPT_5,
provider: ChatModelProviders.OPENAI,