Merge branch 'release' into staging

1bfabd9b77048100bd5947e38c3e83594c59193b

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

1 files changed, +2 -2Ignore whitespace
public/scripts/openai.js+2 -2
@@ -2599,13 +2599,13 @@ export async function createGenerationParameters(settings, model, type, messages
2599 }2599 }
26002600
2601 // Remove logit bias/logprobs/stop-strings if not supported by the model2601 // Remove logit bias/logprobs/stop-strings if not supported by the model
2602 const isVision = (m) => ['gpt', 'vision'].every(x => m.includes(x));2602 const isVision = (m) => ['gpt', 'vision'].every(x => typeof m === 'string' && m.includes(x));
2603 if (gptSources.includes(settings.chat_completion_source) && isVision(model)) {2603 if (gptSources.includes(settings.chat_completion_source) && isVision(model)) {
2604 delete generate_data.logit_bias;2604 delete generate_data.logit_bias;
2605 delete generate_data.stop;2605 delete generate_data.stop;
2606 delete generate_data.logprobs;2606 delete generate_data.logprobs;
2607 }2607 }
2608 if (gptSources.includes(settings.chat_completion_source) && model.includes('gpt-4.5')) {2608 if (gptSources.includes(settings.chat_completion_source) && /gpt-4.5/.test(model)) {
2609 delete generate_data.logprobs;2609 delete generate_data.logprobs;
2610 }2610 }
26112611