From 53945c360f17e736bd892f80ba64f0657ef708d9 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 7 Jan 2024 03:01:01 -0800 Subject: [PATCH] fix: import --- src/routes/(app)/c/[id]/+page.svelte | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/routes/(app)/c/[id]/+page.svelte b/src/routes/(app)/c/[id]/+page.svelte index 4a9aceac..695cd6c9 100644 --- a/src/routes/(app)/c/[id]/+page.svelte +++ b/src/routes/(app)/c/[id]/+page.svelte @@ -6,18 +6,19 @@ import { goto } from '$app/navigation'; import { page } from '$app/stores'; - import { models, modelfiles, user, settings, chats, chatId } from '$lib/stores'; + import { models, modelfiles, user, settings, chats, chatId, config } from '$lib/stores'; + import { copyToClipboard, splitStream } from '$lib/utils'; import { generateChatCompletion, generateTitle } from '$lib/apis/ollama'; + import { createNewChat, getChatList, updateChatById } from '$lib/apis/chats'; + import { queryVectorDB } from '$lib/apis/rag'; import { generateOpenAIChatCompletion } from '$lib/apis/openai'; - import { copyToClipboard, splitStream } from '$lib/utils'; - import MessageInput from '$lib/components/chat/MessageInput.svelte'; import Messages from '$lib/components/chat/Messages.svelte'; import ModelSelector from '$lib/components/chat/ModelSelector.svelte'; import Navbar from '$lib/components/layout/Navbar.svelte'; - import { createNewChat, getChatById, getChatList, updateChatById } from '$lib/apis/chats'; + import { RAGTemplate } from '$lib/utils/rag'; let loaded = false; let stopResponseFlag = false;