Merge branch 'release' into staging

1bfabd9b77048100bd5947e38c3e83594c59193b

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -2Showing whitespace changes
public/scripts/openai.js+2 -2
@@ -2599,13 +2599,13 @@ export async function createGenerationParameters(settings, model, type, messages
25992599 }
26002600
26012601 // Remove logit bias/logprobs/stop-strings if not supported by the model
26022602 const isVision = (m) => ['gpt', 'vision'].every(x => typeof m === 'string' && m.includes(x));
26032603 if (gptSources.includes(settings.chat_completion_source) && isVision(model)) {
26042604 delete generate_data.logit_bias;
26052605 delete generate_data.stop;
26062606 delete generate_data.logprobs;
26072607 }
26082608 if (gptSources.includes(settings.chat_completion_source) && model.includes('/gpt-4.5'/.test(model)) {
26092609 delete generate_data.logprobs;
26102610 }
26112611