forked from open-webui/open-webui
fix: title
This commit is contained in:
parent
26438c29d5
commit
2c1184fec2
2 changed files with 24 additions and 4 deletions
|
@ -708,9 +708,19 @@
|
|||
const modelTag = $models.filter((m) => m.name === responseMessage.model).at(0);
|
||||
|
||||
if (modelTag?.external) {
|
||||
await sendPromptOpenAI(responseMessage.model, prompt, responseMessage.id, _chatId);
|
||||
await sendPromptOpenAI(
|
||||
responseMessage.model,
|
||||
history.messages[responseMessage.parentId].content,
|
||||
responseMessage.id,
|
||||
_chatId
|
||||
);
|
||||
} else if (modelTag) {
|
||||
await sendPromptOllama(responseMessage.model, prompt, responseMessage.id, _chatId);
|
||||
await sendPromptOllama(
|
||||
responseMessage.model,
|
||||
history.messages[responseMessage.parentId].content,
|
||||
responseMessage.id,
|
||||
_chatId
|
||||
);
|
||||
} else {
|
||||
toast.error(`Model ${model} not found`);
|
||||
}
|
||||
|
|
|
@ -709,9 +709,19 @@
|
|||
const modelTag = $models.filter((m) => m.name === responseMessage.model).at(0);
|
||||
|
||||
if (modelTag?.external) {
|
||||
await sendPromptOpenAI(responseMessage.model, prompt, responseMessage.id, _chatId);
|
||||
await sendPromptOpenAI(
|
||||
responseMessage.model,
|
||||
history.messages[responseMessage.parentId].content,
|
||||
responseMessage.id,
|
||||
_chatId
|
||||
);
|
||||
} else if (modelTag) {
|
||||
await sendPromptOllama(responseMessage.model, prompt, responseMessage.id, _chatId);
|
||||
await sendPromptOllama(
|
||||
responseMessage.model,
|
||||
history.messages[responseMessage.parentId].content,
|
||||
responseMessage.id,
|
||||
_chatId
|
||||
);
|
||||
} else {
|
||||
toast.error(`Model ${model} not found`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue