feat: unified chat completions endpoint

This commit is contained in:
Timothy J. Baek committed 2024-06-09 13:17:44 -07:00
1 parent 7b1404f490
commit 84defafc14
3 files changed
+39 -6

No files matched your search

+1 -3
View File
@@ -1134,9 +1134,7 @@
titleModelId,
userPrompt,
$chatId,
titleModel?.owned_by === 'openai' ?? false
? `${OPENAI_API_BASE_URL}`
: `${OLLAMA_API_BASE_URL}/v1`
`${WEBUI_BASE_URL}/api`
);
return title;