diff --git a/src/routes/(app)/+page.svelte b/src/routes/(app)/+page.svelte index 5adba70dc..aeb0ce9a5 100644 --- a/src/routes/(app)/+page.svelte +++ b/src/routes/(app)/+page.svelte @@ -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` diff --git a/src/routes/(app)/c/[id]/+page.svelte b/src/routes/(app)/c/[id]/+page.svelte index d66122e89..7245137d1 100644 --- a/src/routes/(app)/c/[id]/+page.svelte +++ b/src/routes/(app)/c/[id]/+page.svelte @@ -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`