gpt-5.4
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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')) {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user