From 4f4e60f84a02b2ab275543817445b226c3778943 Mon Sep 17 00:00:00 2001
From: Xiaohan-Tian <157918347+Xiaohan-Tian@users.noreply.github.com>
Date: Thu, 25 Dec 2025 14:29:50 -0800
Subject: [PATCH] feat: added latest (as of 2025-12-25) GPT and Claude model
support
---
README.md | 2 +-
public/chat/help.md | 2 +-
public/config.json | 6 +++---
src/components/settings/sections/GeneralSettings.tsx | 6 ++++--
src/core/config/ConfigManager.ts | 6 +++---
5 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/README.md b/README.md
index e5e885f..55aced6 100644
--- a/README.md
+++ b/README.md
@@ -201,7 +201,7 @@ Note: due to CORS limitations with some providers, Google Gemini and Anthropic C
1. Obtain an OpenAI API Key from [**OpenAI**](https://platform.openai.com/account/api-keys). You may need to create an account and add a payment method to generate an API Key.
2. In **Settings ⚙️ → General → LLM Provider**, select **OpenAI** as your provider.
3. Enter your API Key in **OpenAI → Key**.
-4. Select your preferred model from the **OpenAI → Model** dropdown. For optimal performance, we recommend `gpt‑4o`. (`gpt‑5` is still being evaluated.)
+4. Select your preferred model from the **OpenAI → Model** dropdown. For a good balance between performance and cost, we recommend `gpt-5-mini`.
5. Optionally, choose whether to enable Flex Mode in **OpenAI → Flex Mode**. Flex Mode offers discounted pricing, but may result in slower response times or server-side errors.
### Using OpenRouter
diff --git a/public/chat/help.md b/public/chat/help.md
index f78ac17..6ce723c 100644
--- a/public/chat/help.md
+++ b/public/chat/help.md
@@ -17,7 +17,7 @@ Navigate to **Settings ⚙️ → General → LLM Provider**. Depending on your
1. Obtain an OpenAI API Key from [**OpenAI**](https://platform.openai.com/account/api-keys). You may need to create an account and add a payment method to generate an API Key.
2. In **Settings ⚙️ → General → LLM Provider**, select **OpenAI** as your provider.
3. Enter your API Key in **OpenAI → Key**.
-4. Select your preferred model from the **OpenAI → Model** dropdown. For optimal performance, we recommend `gpt-5` or `gpt-4o`.
+4. Select your preferred model from the **OpenAI → Model** dropdown. For optimal performance, we recommend `gpt-5.2` or `gpt-5-mini`.
5. Optionally, choose whether to enable Flex Mode in **OpenAI → Flex Mode**. Flex Mode offers discounted pricing, but may result in slower response times.
---
diff --git a/public/config.json b/public/config.json
index 2d9e42d..2527611 100644
--- a/public/config.json
+++ b/public/config.json
@@ -5,7 +5,7 @@
"openai": {
"api_key": "",
"flex": false,
- "model": "gpt-4o"
+ "model": "gpt-5.2"
},
"gemini": {
"api_key": "",
@@ -13,12 +13,12 @@
},
"claude": {
"api_key": "",
- "model": "claude-sonnet-4-0"
+ "model": "claude-sonnet-4.5"
},
"claude_openrouter": {
"api_key": "",
"base_url": "https://openrouter.ai/api/v1/chat/completions",
- "model": "anthropic/claude-sonnet-4"
+ "model": "anthropic/claude-sonnet-4.5"
},
"openai_compatible": {
"api_key": "",
diff --git a/src/components/settings/sections/GeneralSettings.tsx b/src/components/settings/sections/GeneralSettings.tsx
index d0504ca..e7d825c 100644
--- a/src/components/settings/sections/GeneralSettings.tsx
+++ b/src/components/settings/sections/GeneralSettings.tsx
@@ -221,9 +221,9 @@ const GeneralSettings: React.FC = () => {
value={openaiModel}
onChange={(e) => handleOpenaiModelChange(e.target.value)}
>
- {/*
+
- */}
+
@@ -352,6 +352,8 @@ const GeneralSettings: React.FC = () => {
value={claudeOpenRouterModel}
onChange={(e) => handleClaudeOpenRouterModelChange(e.target.value)}
>
+
+
diff --git a/src/core/config/ConfigManager.ts b/src/core/config/ConfigManager.ts
index 44c61cf..3833075 100644
--- a/src/core/config/ConfigManager.ts
+++ b/src/core/config/ConfigManager.ts
@@ -175,7 +175,7 @@ export class ConfigManager {
openai: {
api_key: '',
flex: false,
- model: 'gpt-4o'
+ model: 'gpt-5.2'
},
gemini: {
api_key: '',
@@ -183,12 +183,12 @@ export class ConfigManager {
},
claude: {
api_key: '',
- model: 'claude-sonnet-4-0'
+ model: 'claude-sonnet-4.5'
},
claude_openrouter: {
api_key: '',
base_url: 'https://openrouter.ai/api/v1/chat/completions',
- model: 'anthropic/claude-sonnet-4'
+ model: 'anthropic/claude-sonnet-4.5'
},
openai_compatible: {
api_key: '',