diff --git a/.env b/.env index 714890f..ad6dfc0 100644 --- a/.env +++ b/.env @@ -4,7 +4,7 @@ VITE_GLOB_API_URL=/api VITE_APP_API_BASE_URL=http://114.218.158.24:9020 # Whether long replies are supported, which may result in higher API fees -VITE_GLOB_OPEN_LONG_REPLY=false +VITE_GLOB_OPEN_LONG_REPLY=true # When you want to use PWA VITE_GLOB_APP_PWA=false diff --git a/package-lock.json b/package-lock.json index 2f88d15..e320cdd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,6 +21,7 @@ "markdown-it": "^13.0.1", "naive-ui": "^2.34.3", "pinia": "^2.0.33", + "postmate": "^1.5.2", "primeflex": "^3.3.1", "primeicons": "^6.0.1", "primevue": "^3.46.0", @@ -9194,6 +9195,11 @@ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", "dev": true }, + "node_modules/postmate": { + "version": "1.5.2", + "resolved": "https://registry.npmmirror.com/postmate/-/postmate-1.5.2.tgz", + "integrity": "sha512-EHLlEmrUA/hALls49oBrtE7BzDXXjB9EiO4MZpsoO3R/jRuBmD+2WKQuYAbeuVEpTzrPpUTT79z2cz4qaFgPRg==" + }, "node_modules/prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", @@ -18649,6 +18655,11 @@ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", "dev": true }, + "postmate": { + "version": "1.5.2", + "resolved": "https://registry.npmmirror.com/postmate/-/postmate-1.5.2.tgz", + "integrity": "sha512-EHLlEmrUA/hALls49oBrtE7BzDXXjB9EiO4MZpsoO3R/jRuBmD+2WKQuYAbeuVEpTzrPpUTT79z2cz4qaFgPRg==" + }, "prelude-ls": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", diff --git a/package.json b/package.json index a20fc9a..32a6baf 100644 --- a/package.json +++ b/package.json @@ -36,10 +36,11 @@ "markdown-it": "^13.0.1", "naive-ui": "^2.34.3", "pinia": "^2.0.33", + "postmate": "^1.5.2", "primeflex": "^3.3.1", "primeicons": "^6.0.1", - "primevue": "^3.46.0", - "quasar": "^2.14.2", + "primevue": "^3.47.2", + "quasar": "^2.14.3", "vite-plugin-qiankun": "^1.0.15", "vue": "^3.2.47", "vue-i18n": "^9.2.2", @@ -69,7 +70,7 @@ "rimraf": "^4.3.0", "tailwindcss": "^3.2.7", "typescript": "~4.9.5", - "unplugin-auto-import": "^0.17.3", + "unplugin-auto-import": "^0.17.5", "unplugin-vue-components": "^0.26.0", "vite": "^4.2.0", "vite-plugin-pwa": "^0.14.4", diff --git a/src/views/chat/components/Message/index.vue b/src/views/chat/components/Message/index.vue index 84b616a..85adf34 100644 --- a/src/views/chat/components/Message/index.vue +++ b/src/views/chat/components/Message/index.vue @@ -77,10 +77,10 @@ function handleSelect(key: 'copyText' | 'delete' | 'toggleRenderType') { } } -function handleRegenerate() { +/* function handleRegenerate() { messageRef.value?.scrollIntoView() emit('regenerate') -} +} */ async function handleCopy() { try { diff --git a/tsconfig.json b/tsconfig.json index 2bfc70a..c8bb6ae 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "allowJs": true, "baseUrl": ".", "module": "ESNext", "target": "ESNext", diff --git a/vite.config.ts b/vite.config.ts index eb02122..b0e56c3 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -48,12 +48,6 @@ export default defineConfig((env) => { commonjsOptions: { ignoreTryCatch: false, }, - target: 'esnext', - lib: { - name: 'testapp', - entry: 'src/main.ts', - formats: ['umd'], - }, }, } })