Compare commits
2 Commits
main
...
oem-hlbrzy
Author | SHA1 | Date | |
---|---|---|---|
5b9db644e4 | |||
39c581f3f9 |
2
.env.oem-hlbrzy
Normal file
2
.env.oem-hlbrzy
Normal file
@ -0,0 +1,2 @@
|
||||
DIFY_BASE_URL=https://service3.fenshenzhike.com/v1
|
||||
DIFY_API_KEY=app-58uPYnqyLAtVtBYELHUGkqD9
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -22,3 +22,4 @@ logs
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
!.env.oem-hlbrzy
|
||||
|
14
package.json
14
package.json
@ -12,20 +12,22 @@
|
||||
"dependencies": {
|
||||
"@pinia/nuxt": "0.10.1",
|
||||
"@tailwindcss/typography": "^0.5.16",
|
||||
"@tailwindcss/vite": "^4.0.14",
|
||||
"@tailwindcss/vite": "^4.1.4",
|
||||
"@uniiem/uuid": "^0.2.1",
|
||||
"dotenv": "^16.4.7",
|
||||
"dotenv": "^16.5.0",
|
||||
"highlight.js": "^11.11.1",
|
||||
"markdown-it": "^14.1.0",
|
||||
"nuxt": "^3.16.0",
|
||||
"pinia": "^3.0.1",
|
||||
"tailwindcss": "^4.0.14",
|
||||
"nuxt": "^3.16.2",
|
||||
"pinia": "^3.0.2",
|
||||
"tailwindcss": "^4.1.4",
|
||||
"vue": "^3.5.13",
|
||||
"vue-router": "^4.5.0"
|
||||
},
|
||||
"packageManager": "pnpm@9.15.3+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a",
|
||||
"devDependencies": {
|
||||
"@nuxt/ui": "^3.0.0",
|
||||
"@iconify-json/svg-spinners": "^1.2.2",
|
||||
"@iconify-json/tabler": "^1.2.17",
|
||||
"@nuxt/ui": "^3.0.2",
|
||||
"@types/markdown-it": "^14.1.2"
|
||||
}
|
||||
}
|
||||
|
@ -150,8 +150,7 @@ const getPopularInquiriesByRole = () => {
|
||||
};
|
||||
|
||||
const scrollArea = ref<HTMLDivElement | null>(null);
|
||||
// 滤除思考过程 details/think 标签正则
|
||||
const regex = /(?<=<\/details|think>\n\n)[\s\S]*/gm;
|
||||
const regex = /<\/think>\n\n([\s\S]*)/m;
|
||||
|
||||
// 常见问题
|
||||
const inquiries = computed(
|
||||
@ -199,7 +198,7 @@ const onInquirySubmit = async () => {
|
||||
id: botMessageId,
|
||||
role: "bot",
|
||||
message:
|
||||
resp.data.value?.data.outputs.message.match(regex)?.[0] ||
|
||||
resp.data.value?.data.outputs.message.match(regex)?.[1] ||
|
||||
"网络繁忙,请稍后再试",
|
||||
});
|
||||
} catch (error) {
|
||||
|
4512
pnpm-lock.yaml
generated
4512
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user