Compare commits

...

2 Commits

Author SHA1 Message Date
5b9db644e4
chore: bump dep version 2025-04-18 16:00:40 +08:00
39c581f3f9
feat: 内蒙古呼伦贝尔职教 OEM 支持 2025-04-17 20:16:05 +08:00
5 changed files with 3069 additions and 1465 deletions

2
.env.oem-hlbrzy Normal file
View File

@ -0,0 +1,2 @@
DIFY_BASE_URL=https://service3.fenshenzhike.com/v1
DIFY_API_KEY=app-58uPYnqyLAtVtBYELHUGkqD9

1
.gitignore vendored
View File

@ -22,3 +22,4 @@ logs
.env .env
.env.* .env.*
!.env.example !.env.example
!.env.oem-hlbrzy

View File

@ -12,20 +12,22 @@
"dependencies": { "dependencies": {
"@pinia/nuxt": "0.10.1", "@pinia/nuxt": "0.10.1",
"@tailwindcss/typography": "^0.5.16", "@tailwindcss/typography": "^0.5.16",
"@tailwindcss/vite": "^4.0.14", "@tailwindcss/vite": "^4.1.4",
"@uniiem/uuid": "^0.2.1", "@uniiem/uuid": "^0.2.1",
"dotenv": "^16.4.7", "dotenv": "^16.5.0",
"highlight.js": "^11.11.1", "highlight.js": "^11.11.1",
"markdown-it": "^14.1.0", "markdown-it": "^14.1.0",
"nuxt": "^3.16.0", "nuxt": "^3.16.2",
"pinia": "^3.0.1", "pinia": "^3.0.2",
"tailwindcss": "^4.0.14", "tailwindcss": "^4.1.4",
"vue": "^3.5.13", "vue": "^3.5.13",
"vue-router": "^4.5.0" "vue-router": "^4.5.0"
}, },
"packageManager": "pnpm@9.15.3+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a", "packageManager": "pnpm@9.15.3+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a",
"devDependencies": { "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" "@types/markdown-it": "^14.1.2"
} }
} }

View File

@ -150,8 +150,7 @@ const getPopularInquiriesByRole = () => {
}; };
const scrollArea = ref<HTMLDivElement | null>(null); const scrollArea = ref<HTMLDivElement | null>(null);
// details/think const regex = /<\/think>\n\n([\s\S]*)/m;
const regex = /(?<=<\/details|think>\n\n)[\s\S]*/gm;
// //
const inquiries = computed( const inquiries = computed(
@ -199,7 +198,7 @@ const onInquirySubmit = async () => {
id: botMessageId, id: botMessageId,
role: "bot", role: "bot",
message: message:
resp.data.value?.data.outputs.message.match(regex)?.[0] || resp.data.value?.data.outputs.message.match(regex)?.[1] ||
"网络繁忙,请稍后再试", "网络繁忙,请稍后再试",
}); });
} catch (error) { } catch (error) {

4512
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff