fix: openai isseu

This commit is contained in:
Timothy J. Baek 2024-03-29 18:24:30 -07:00
parent 1371e66ed9
commit 15f4153fda
2 changed files with 2 additions and 2 deletions

View file

@ -588,7 +588,7 @@
max_tokens: $settings?.options?.num_predict ?? undefined,
docs: docs.length > 0 ? docs : undefined
},
model.source.toLowerCase() === 'litellm'
model?.source?.toLowerCase() === 'litellm'
? `${LITELLM_API_BASE_URL}/v1`
: `${OPENAI_API_BASE_URL}`
);

View file

@ -602,7 +602,7 @@
max_tokens: $settings?.options?.num_predict ?? undefined,
docs: docs.length > 0 ? docs : undefined
},
model.source.toLowerCase() === 'litellm'
model?.source?.toLowerCase() === 'litellm'
? `${LITELLM_API_BASE_URL}/v1`
: `${OPENAI_API_BASE_URL}`
);