Merge pull request #25 from KGAudioLab/feat/2025-12-25-more-models

feat: added latest (as of 2025-12-25) GPT and Claude model support
This commit is contained in:
Xiaohan-Tian
2026-01-17 12:33:35 -08:00
committed by GitHub
5 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -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. 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. 2. In **Settings ⚙️ → General → LLM Provider**, select **OpenAI** as your provider.
3. Enter your API Key in **OpenAI → Key**. 3. Enter your API Key in **OpenAI → Key**.
4. Select your preferred model from the **OpenAI → Model** dropdown. For optimal performance, we recommend `gpt4o`. (`gpt5` 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. 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 ### Using OpenRouter
+1 -1
View File
@@ -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. 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. 2. In **Settings ⚙️ → General → LLM Provider**, select **OpenAI** as your provider.
3. Enter your API Key in **OpenAI → Key**. 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. 5. Optionally, choose whether to enable Flex Mode in **OpenAI → Flex Mode**. Flex Mode offers discounted pricing, but may result in slower response times.
--- ---
+3 -3
View File
@@ -5,7 +5,7 @@
"openai": { "openai": {
"api_key": "", "api_key": "",
"flex": false, "flex": false,
"model": "gpt-4o" "model": "gpt-5.2"
}, },
"gemini": { "gemini": {
"api_key": "", "api_key": "",
@@ -13,12 +13,12 @@
}, },
"claude": { "claude": {
"api_key": "", "api_key": "",
"model": "claude-sonnet-4-0" "model": "claude-sonnet-4.5"
}, },
"claude_openrouter": { "claude_openrouter": {
"api_key": "", "api_key": "",
"base_url": "https://openrouter.ai/api/v1/chat/completions", "base_url": "https://openrouter.ai/api/v1/chat/completions",
"model": "anthropic/claude-sonnet-4" "model": "anthropic/claude-sonnet-4.5"
}, },
"openai_compatible": { "openai_compatible": {
"api_key": "", "api_key": "",
@@ -221,9 +221,9 @@ const GeneralSettings: React.FC = () => {
value={openaiModel} value={openaiModel}
onChange={(e) => handleOpenaiModelChange(e.target.value)} onChange={(e) => handleOpenaiModelChange(e.target.value)}
> >
{/* <option value="gpt-5">gpt-5</option> <option value="gpt-5.2">gpt-5.2</option>
<option value="gpt-5-mini">gpt-5-mini</option> <option value="gpt-5-mini">gpt-5-mini</option>
<option value="gpt-5-nano">gpt-5-nano</option> */} <option value="gpt-5-nano">gpt-5-nano</option>
<option value="gpt-4o">gpt-4o</option> <option value="gpt-4o">gpt-4o</option>
</select> </select>
</div> </div>
@@ -352,6 +352,8 @@ const GeneralSettings: React.FC = () => {
value={claudeOpenRouterModel} value={claudeOpenRouterModel}
onChange={(e) => handleClaudeOpenRouterModelChange(e.target.value)} onChange={(e) => handleClaudeOpenRouterModelChange(e.target.value)}
> >
<option value="anthropic/claude-sonnet-4.5">claude-sonnet-4.5</option>
<option value="anthropic/claude-opus-4.5">claude-opus-4.5</option>
<option value="anthropic/claude-sonnet-4">claude-sonnet-4</option> <option value="anthropic/claude-sonnet-4">claude-sonnet-4</option>
<option value="anthropic/claude-opus-4.1">claude-opus-4.1</option> <option value="anthropic/claude-opus-4.1">claude-opus-4.1</option>
</select> </select>
+3 -3
View File
@@ -175,7 +175,7 @@ export class ConfigManager {
openai: { openai: {
api_key: '', api_key: '',
flex: false, flex: false,
model: 'gpt-4o' model: 'gpt-5.2'
}, },
gemini: { gemini: {
api_key: '', api_key: '',
@@ -183,12 +183,12 @@ export class ConfigManager {
}, },
claude: { claude: {
api_key: '', api_key: '',
model: 'claude-sonnet-4-0' model: 'claude-sonnet-4.5'
}, },
claude_openrouter: { claude_openrouter: {
api_key: '', api_key: '',
base_url: 'https://openrouter.ai/api/v1/chat/completions', base_url: 'https://openrouter.ai/api/v1/chat/completions',
model: 'anthropic/claude-sonnet-4' model: 'anthropic/claude-sonnet-4.5'
}, },
openai_compatible: { openai_compatible: {
api_key: '', api_key: '',