|
@@ -7,7 +7,7 @@
|
|
|
import { page } from '$app/stores';
|
|
|
|
|
|
import { models, modelfiles, user, settings, chats, chatId, config } from '$lib/stores';
|
|
|
- import { copyToClipboard, splitStream } from '$lib/utils';
|
|
|
+ import { copyToClipboard, splitStream, convertMessagesToHistory } from '$lib/utils';
|
|
|
|
|
|
import { generateChatCompletion, generateTitle } from '$lib/apis/ollama';
|
|
|
import { createNewChat, getChatById, getChatList, updateChatById } from '$lib/apis/chats';
|
|
@@ -103,7 +103,7 @@
|
|
|
selectedModels =
|
|
|
(chatContent?.models ?? undefined) !== undefined
|
|
|
? chatContent.models
|
|
|
- : [chatContent.model ?? ''];
|
|
|
+ : [chatContent.models ?? ''];
|
|
|
history =
|
|
|
(chatContent?.history ?? undefined) !== undefined
|
|
|
? chatContent.history
|