fix: litellm title generation issue

This commit is contained in:
Timothy J. Baek 2024-03-29 18:14:05 -07:00
parent 2fbb92aceb
commit 1371e66ed9
2 changed files with 2 additions and 2 deletions

View file

@ -781,7 +781,7 @@
titleModelId,
userPrompt,
titleModel?.external ?? false
? titleModel.source === 'litellm'
? titleModel?.source?.toLowerCase() === 'litellm'
? `${LITELLM_API_BASE_URL}/v1`
: `${OPENAI_API_BASE_URL}`
: `${OLLAMA_API_BASE_URL}/v1`

View file

@ -795,7 +795,7 @@
titleModelId,
userPrompt,
titleModel?.external ?? false
? titleModel.source === 'litellm'
? titleModel?.source?.toLowerCase() === 'litellm'
? `${LITELLM_API_BASE_URL}/v1`
: `${OPENAI_API_BASE_URL}`
: `${OLLAMA_API_BASE_URL}/v1`