"src/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "d7ba7f44b70b85c2f4ad2979ff7d9f6da9cec6b8"
Commit 2c1184fe authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: title

parent 26438c29
...@@ -708,9 +708,19 @@ ...@@ -708,9 +708,19 @@
const modelTag = $models.filter((m) => m.name === responseMessage.model).at(0); const modelTag = $models.filter((m) => m.name === responseMessage.model).at(0);
if (modelTag?.external) { 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) { } else if (modelTag) {
await sendPromptOllama(responseMessage.model, prompt, responseMessage.id, _chatId); await sendPromptOllama(
responseMessage.model,
history.messages[responseMessage.parentId].content,
responseMessage.id,
_chatId
);
} else { } else {
toast.error(`Model ${model} not found`); toast.error(`Model ${model} not found`);
} }
......
...@@ -709,9 +709,19 @@ ...@@ -709,9 +709,19 @@
const modelTag = $models.filter((m) => m.name === responseMessage.model).at(0); const modelTag = $models.filter((m) => m.name === responseMessage.model).at(0);
if (modelTag?.external) { 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) { } else if (modelTag) {
await sendPromptOllama(responseMessage.model, prompt, responseMessage.id, _chatId); await sendPromptOllama(
responseMessage.model,
history.messages[responseMessage.parentId].content,
responseMessage.id,
_chatId
);
} else { } else {
toast.error(`Model ${model} not found`); toast.error(`Model ${model} not found`);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment