Merge pull request #3577 from SillyTavern/the-best-model-tm

Add gpt-4.5-preview (best model ™️ - most expensive for sure)
This commit is contained in:
Cohee
2025-02-27 23:30:34 +02:00
committed by GitHub
4 changed files with 12 additions and 1 deletions

View File

@@ -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',

View File

@@ -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 },