diff --git a/public/index.html b/public/index.html index a5f7041f7..8e3beaef8 100644 --- a/public/index.html +++ b/public/index.html @@ -2867,6 +2867,10 @@ + + + + diff --git a/public/scripts/openai.js b/public/scripts/openai.js index 2e87100e8..040b14dcd 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -1945,7 +1945,7 @@ async function sendOpenAIRequest(type, messages, signal) { } // Remove logit bias, logprobs and stop strings if it's not supported by the model - if (isOAI && oai_settings.openai_model.includes('vision') || isOpenRouter && oai_settings.openrouter_model.includes('vision')) { + if (isOAI && oai_settings.openai_model.includes('vision') || isOpenRouter && oai_settings.openrouter_model.includes('vision') || isOAI && oai_settings.openai_model.includes('gpt-4.5-preview')) { delete generate_data.logit_bias; delete generate_data.stop; delete generate_data.logprobs; @@ -4997,6 +4997,8 @@ export function isImageInliningSupported() { 'gpt-4-turbo', 'gpt-4o', 'gpt-4o-mini', + 'gpt-4.5-preview', + 'gpt-4.5-preview-2025-02-27', 'o1', 'o1-2024-12-17', 'chatgpt-4o-latest', diff --git a/public/scripts/reasoning.js b/public/scripts/reasoning.js index d475ca3f9..274a7a654 100644 --- a/public/scripts/reasoning.js +++ b/public/scripts/reasoning.js @@ -108,6 +108,7 @@ export function isHiddenReasoningModel() { /** @type {{ name: string; func: MatchingFunc; }[]} */ const hiddenReasoningModels = [ + { name: 'gpt-4.5', func: FUNCS.startsWith }, { name: 'o1', func: FUNCS.startsWith }, { name: 'o3', func: FUNCS.startsWith }, { name: 'gemini-2.0-flash-thinking-exp', func: FUNCS.startsWith }, diff --git a/src/endpoints/tokenizers.js b/src/endpoints/tokenizers.js index f746d2e78..7ca652086 100644 --- a/src/endpoints/tokenizers.js +++ b/src/endpoints/tokenizers.js @@ -410,6 +410,10 @@ export function getTokenizerModel(requestModel) { return 'gpt-4o'; } + if (requestModel.includes('gpt-4.5-preview')) { + return 'gpt-4o'; + } + if (requestModel.includes('gpt-4-32k')) { return 'gpt-4-32k'; }