mirror of
https://github.com/open-webui/open-webui
synced 2024-12-29 15:25:29 +00:00
refac: title generation logic
This commit is contained in:
parent
96a06effe2
commit
4b3e1bb747
@ -1511,7 +1511,12 @@
|
|||||||
chat_id: $chatId,
|
chat_id: $chatId,
|
||||||
id: responseMessageId,
|
id: responseMessageId,
|
||||||
|
|
||||||
...(!$temporaryChatEnabled && messages.length == 1 && selectedModels[0] === model.id
|
...(!$temporaryChatEnabled &&
|
||||||
|
(messages.length == 1 ||
|
||||||
|
(messages.length == 2 &&
|
||||||
|
messages.at(0)?.role === 'system' &&
|
||||||
|
messages.at(1)?.role === 'user')) &&
|
||||||
|
selectedModels[0] === model.id
|
||||||
? {
|
? {
|
||||||
background_tasks: {
|
background_tasks: {
|
||||||
title_generation: $settings?.title?.auto ?? true,
|
title_generation: $settings?.title?.auto ?? true,
|
||||||
|
Loading…
Reference in New Issue
Block a user