feat: unified chat completions endpoint

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

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;