mirror of
https://github.com/open-webui/open-webui
synced 2025-02-19 19:38:52 +00:00
feat: alternative models response support
This commit is contained in:
parent
0fcdee60cd
commit
ecc2466f1e
@ -323,7 +323,9 @@
|
|||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
|
|
||||||
const openAIModels = openaiModelRes?.data ?? null;
|
const openAIModels = Array.isArray(openaiModelRes)
|
||||||
|
? openaiModelRes
|
||||||
|
: openaiModelRes?.data ?? null;
|
||||||
|
|
||||||
models.push(
|
models.push(
|
||||||
...(openAIModels
|
...(openAIModels
|
||||||
|
@ -74,7 +74,9 @@
|
|||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
|
|
||||||
const openAIModels = openaiModelRes?.data ?? null;
|
const openAIModels = Array.isArray(openaiModelRes)
|
||||||
|
? openaiModelRes
|
||||||
|
: openaiModelRes?.data ?? null;
|
||||||
|
|
||||||
models.push(
|
models.push(
|
||||||
...(openAIModels
|
...(openAIModels
|
||||||
|
Loading…
Reference in New Issue
Block a user