Skip to content

Commit

Permalink
fix: correct conditional statement in ModelService.js (danny-avila#1145)
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-avila authored Nov 6, 2023
1 parent 5f3ecef commit 4b63eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/server/services/ModelService.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const fetchOpenAIModels = async (opts = { azure: false, plugins: false }, _model
return cachedModels;
}

if (basePath.includes('v1') || opts.azure) {
if (basePath?.includes('v1') || opts.azure) {
try {
const res = await axios.get(`${basePath}${opts.azure ? '' : '/models'}`, {
headers: {
Expand Down

0 comments on commit 4b63eb5

Please sign in to comment.