Migrated to WXT

This commit is contained in:
n4ze3m
2024-03-23 14:44:05 +05:30
parent 4aff7f991a
commit b33ee0366c
63 changed files with 2904 additions and 388 deletions

View File

@@ -1,11 +1,11 @@
import React from "react"
import { cleanUrl } from "~libs/clean-url"
import { cleanUrl } from "~/libs/clean-url"
import {
geWebSearchFollowUpPrompt,
getOllamaURL,
systemPromptForNonRagOption
} from "~services/ollama"
import { type ChatHistory, type Message } from "~store/option"
} from "~/services/ollama"
import { type ChatHistory, type Message } from "~/store/option"
import { ChatOllama } from "@langchain/community/chat_models/ollama"
import {
HumanMessage,
@@ -13,7 +13,7 @@ import {
type MessageContent,
SystemMessage
} from "@langchain/core/messages"
import { useStoreMessageOption } from "~store/option"
import { useStoreMessageOption } from "~/store/option"
import {
deleteChatForEdit,
getPromptById,
@@ -21,10 +21,10 @@ import {
saveHistory,
saveMessage,
updateMessageByIndex
} from "~libs/db"
} from "~/libs/db"
import { useNavigate } from "react-router-dom"
import { notification } from "antd"
import { getSystemPromptForWeb } from "~web/web"
import { getSystemPromptForWeb } from "~/web/web"
export type BotResponse = {
bot: {