Skip to content

Commit 389218d

Browse files
committed
fix(models): exclude voice-only openai-audio from chat model selector to avoid 400 on chat; retain TTS via voice list
1 parent 2051616 commit 389218d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2153,7 +2153,9 @@ async function loadModels() {
21532153
setStatus('Loading models…');
21542154
try {
21552155
const catalog = await textModels(client);
2156-
const models = normalizeTextCatalog(catalog);
2156+
const modelsRaw = normalizeTextCatalog(catalog);
2157+
// Exclude voice-only TTS model from chat model selector to avoid HTTP 400 on chat
2158+
const models = (modelsRaw || []).filter(m => !matchesModelIdentifier('openai-audio', m));
21572159
if (!Array.isArray(models) || !models.length) {
21582160
throw new Error('Received an empty model list');
21592161
}

0 commit comments

Comments
 (0)