mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
fix: correct conditional statement in ModelService.js (#1145)
This commit is contained in:
parent
5f3ecef575
commit
4b63eb5a2c
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ const fetchOpenAIModels = async (opts = { azure: false, plugins: false }, _model
|
||||||
return cachedModels;
|
return cachedModels;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (basePath.includes('v1') || opts.azure) {
|
if (basePath?.includes('v1') || opts.azure) {
|
||||||
try {
|
try {
|
||||||
const res = await axios.get(`${basePath}${opts.azure ? '' : '/models'}`, {
|
const res = await axios.get(`${basePath}${opts.azure ? '' : '/models'}`, {
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue