forked from open-webui/open-webui
fix: litellm title generation issue
This commit is contained in:
parent
2fbb92aceb
commit
1371e66ed9
2 changed files with 2 additions and 2 deletions
|
@ -781,7 +781,7 @@
|
||||||
titleModelId,
|
titleModelId,
|
||||||
userPrompt,
|
userPrompt,
|
||||||
titleModel?.external ?? false
|
titleModel?.external ?? false
|
||||||
? titleModel.source === 'litellm'
|
? titleModel?.source?.toLowerCase() === 'litellm'
|
||||||
? `${LITELLM_API_BASE_URL}/v1`
|
? `${LITELLM_API_BASE_URL}/v1`
|
||||||
: `${OPENAI_API_BASE_URL}`
|
: `${OPENAI_API_BASE_URL}`
|
||||||
: `${OLLAMA_API_BASE_URL}/v1`
|
: `${OLLAMA_API_BASE_URL}/v1`
|
||||||
|
|
|
@ -795,7 +795,7 @@
|
||||||
titleModelId,
|
titleModelId,
|
||||||
userPrompt,
|
userPrompt,
|
||||||
titleModel?.external ?? false
|
titleModel?.external ?? false
|
||||||
? titleModel.source === 'litellm'
|
? titleModel?.source?.toLowerCase() === 'litellm'
|
||||||
? `${LITELLM_API_BASE_URL}/v1`
|
? `${LITELLM_API_BASE_URL}/v1`
|
||||||
: `${OPENAI_API_BASE_URL}`
|
: `${OPENAI_API_BASE_URL}`
|
||||||
: `${OLLAMA_API_BASE_URL}/v1`
|
: `${OLLAMA_API_BASE_URL}/v1`
|
||||||
|
|
Loading…
Reference in a new issue