gpt-5.4
| @@ -3028,6 +3028,9 @@ | ||
| 3028 | 3028 | <div> |
| 3029 | 3029 | <h4 data-i18n="OpenAI Model">OpenAI Model</h4> |
| 3030 | 3030 | <select id="model_openai_select"> |
| 3031 | + <optgroup label="GPT-5.4"> | |
| 3032 | + <option value="gpt-5.4">gpt-5.4</option> | |
| 3033 | + </optgroup> | |
| 3031 | 3034 | <optgroup label="GPT-5.3"> |
| 3032 | 3035 | <option value="gpt-5.3-chat-latest">gpt-5.3-chat-latest</option> |
| 3033 | 3036 | </optgroup> |
| @@ -53,6 +53,7 @@ | ||
| 53 | 53 | <option data-type="cohere" value="c4ai-aya-vision-8b">c4ai-aya-vision-8b</option> |
| 54 | 54 | <option data-type="cohere" value="c4ai-aya-vision-32b">c4ai-aya-vision-32b</option> |
| 55 | 55 | <option data-type="cohere" value="command-a-vision-07-2025">command-a-vision-07-2025</option> |
| 56 | + <option data-type="openai" value="gpt-5.4">gpt-5.4</option> | |
| 56 | 57 | <option data-type="openai" value="gpt-5.3-chat-latest">gpt-5.3-chat-latest</option> |
| 57 | 58 | <option data-type="openai" value="gpt-5.2">gpt-5.2</option> |
| 58 | 59 | <option data-type="openai" value="gpt-5.2-2025-12-11">gpt-5.2-2025-12-11</option> |
| @@ -2859,7 +2859,7 @@ export async function createGenerationParameters(settings, model, type, messages | ||
| 2859 | 2859 | if (/gpt-5-chat-latest/.test(model)) { |
| 2860 | 2860 | delete generate_data.tools; |
| 2861 | 2861 | delete generate_data.tool_choice; |
| 2862 | 2862 | } else if (/gpt-5\.(1|2|3|4)/.test(model) && !/chat-latest/.test(model)) { |
| 2863 | 2863 | delete generate_data.frequency_penalty; |
| 2864 | 2864 | delete generate_data.presence_penalty; |
| 2865 | 2865 | delete generate_data.logit_bias; |
| @@ -4789,6 +4789,8 @@ function onSettingsPresetChange() { | ||
| 4789 | 4789 | function getMaxContextOpenAI(value) { |
| 4790 | 4790 | if (oai_settings.max_context_unlocked) { |
| 4791 | 4791 | return unlocked_max; |
| 4792 | + } else if (value.startsWith('gpt-5.4')) { | |
| 4793 | + return max_1mil; | |
| 4792 | 4794 | } else if (value.startsWith('gpt-5')) { |
| 4793 | 4795 | return max_400k; |
| 4794 | 4796 | } else if (value.includes('gpt-4.1')) { |
| @@ -477,6 +477,7 @@ export const OPENAI_REASONING_EFFORT_MODELS = [ | ||
| 477 | 477 | 'gpt-5.2-2025-12-11', |
| 478 | 478 | 'gpt-5.2-chat-latest', |
| 479 | 479 | 'gpt-5.3-chat-latest', |
| 480 | + 'gpt-5.4', | |
| 480 | 481 | ]; |
| 481 | 482 | |
| 482 | 483 | export const OPENAI_REASONING_EFFORT_MAP = { |