mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 02:47:52 +01:00
Fix "OpenAI-compatible" endpoints choking on empty logit bias
This commit is contained in:
parent
2daff0e736
commit
abef12d403
@ -1813,6 +1813,10 @@ async function sendOpenAIRequest(type, messages, signal) {
|
||||
biasCache = logit_bias;
|
||||
}
|
||||
|
||||
if (Object.keys(logit_bias).length === 0) {
|
||||
logit_bias = undefined;
|
||||
}
|
||||
|
||||
if (isScale && oai_settings.use_alt_scale) {
|
||||
return sendAltScaleRequest(messages, logit_bias, signal, type);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user