Skip to content

Commit 4b63eb5

Browse files
authored
fix: correct conditional statement in ModelService.js (danny-avila#1145)
1 parent 5f3ecef commit 4b63eb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/server/services/ModelService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const fetchOpenAIModels = async (opts = { azure: false, plugins: false }, _model
3838
return cachedModels;
3939
}
4040

41-
if (basePath.includes('v1') || opts.azure) {
41+
if (basePath?.includes('v1') || opts.azure) {
4242
try {
4343
const res = await axios.get(`${basePath}${opts.azure ? '' : '/models'}`, {
4444
headers: {

0 commit comments

Comments
 (0)