This commit is contained in:
Cohee
2026-03-07 20:39:34 +02:00
parent 7418d272a7
commit 92dd9ecab2
4 changed files with 8 additions and 1 deletions
+3
View File
@@ -3028,6 +3028,9 @@
<div>
<h4 data-i18n="OpenAI Model">OpenAI Model</h4>
<select id="model_openai_select">
<optgroup label="GPT-5.4">
<option value="gpt-5.4">gpt-5.4</option>
</optgroup>
<optgroup label="GPT-5.3">
<option value="gpt-5.3-chat-latest">gpt-5.3-chat-latest</option>
</optgroup>
@@ -53,6 +53,7 @@
<option data-type="cohere" value="c4ai-aya-vision-8b">c4ai-aya-vision-8b</option>
<option data-type="cohere" value="c4ai-aya-vision-32b">c4ai-aya-vision-32b</option>
<option data-type="cohere" value="command-a-vision-07-2025">command-a-vision-07-2025</option>
<option data-type="openai" value="gpt-5.4">gpt-5.4</option>
<option data-type="openai" value="gpt-5.3-chat-latest">gpt-5.3-chat-latest</option>
<option data-type="openai" value="gpt-5.2">gpt-5.2</option>
<option data-type="openai" value="gpt-5.2-2025-12-11">gpt-5.2-2025-12-11</option>
+3 -1
View File
@@ -2859,7 +2859,7 @@ export async function createGenerationParameters(settings, model, type, messages
if (/gpt-5-chat-latest/.test(model)) {
delete generate_data.tools;
delete generate_data.tool_choice;
} else if (/gpt-5\.(1|2|3)/.test(model) && !/chat-latest/.test(model)) {
} else if (/gpt-5\.(1|2|3|4)/.test(model) && !/chat-latest/.test(model)) {
delete generate_data.frequency_penalty;
delete generate_data.presence_penalty;
delete generate_data.logit_bias;
@@ -4789,6 +4789,8 @@ function onSettingsPresetChange() {
function getMaxContextOpenAI(value) {
if (oai_settings.max_context_unlocked) {
return unlocked_max;
} else if (value.startsWith('gpt-5.4')) {
return max_1mil;
} else if (value.startsWith('gpt-5')) {
return max_400k;
} else if (value.includes('gpt-4.1')) {
+1
View File
@@ -477,6 +477,7 @@ export const OPENAI_REASONING_EFFORT_MODELS = [
'gpt-5.2-2025-12-11',
'gpt-5.2-chat-latest',
'gpt-5.3-chat-latest',
'gpt-5.4',
];
export const OPENAI_REASONING_EFFORT_MAP = {