feat: @model group convo

This commit is contained in:
Timothy J. Baek
2024-01-09 22:47:31 -08:00
parent 358f79f533
commit 70029d9bed
7 changed files with 261 additions and 15 deletions
+2 -1
View File
@@ -116,7 +116,7 @@
// Ollama functions
//////////////////////////
const submitPrompt = async (userPrompt) => {
const submitPrompt = async (userPrompt, _user = null) => {
console.log('submitPrompt', $chatId);
if (selectedModels.includes('')) {
@@ -143,6 +143,7 @@
parentId: messages.length !== 0 ? messages.at(-1).id : null,
childrenIds: [],
role: 'user',
user: _user ?? undefined,
content: userPrompt,
files: files.length > 0 ? files : undefined
};