Compare commits

..

No commits in common. "oem-hlbrzy" and "main" have entirely different histories.

5 changed files with 1467 additions and 3071 deletions

View File

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

1
.gitignore vendored
View File

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

View File

@ -12,22 +12,20 @@
"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.1.4", "@tailwindcss/vite": "^4.0.14",
"@uniiem/uuid": "^0.2.1", "@uniiem/uuid": "^0.2.1",
"dotenv": "^16.5.0", "dotenv": "^16.4.7",
"highlight.js": "^11.11.1", "highlight.js": "^11.11.1",
"markdown-it": "^14.1.0", "markdown-it": "^14.1.0",
"nuxt": "^3.16.2", "nuxt": "^3.16.0",
"pinia": "^3.0.2", "pinia": "^3.0.1",
"tailwindcss": "^4.1.4", "tailwindcss": "^4.0.14",
"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": {
"@iconify-json/svg-spinners": "^1.2.2", "@nuxt/ui": "^3.0.0",
"@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,7 +150,8 @@ const getPopularInquiriesByRole = () => {
}; };
const scrollArea = ref<HTMLDivElement | null>(null); const scrollArea = ref<HTMLDivElement | null>(null);
const regex = /<\/think>\n\n([\s\S]*)/m; // details/think
const regex = /(?<=<\/details|think>\n\n)[\s\S]*/gm;
// //
const inquiries = computed( const inquiries = computed(
@ -198,7 +199,7 @@ const onInquirySubmit = async () => {
id: botMessageId, id: botMessageId,
role: "bot", role: "bot",
message: message:
resp.data.value?.data.outputs.message.match(regex)?.[1] || resp.data.value?.data.outputs.message.match(regex)?.[0] ||
"网络繁忙,请稍后再试", "网络繁忙,请稍后再试",
}); });
} catch (error) { } catch (error) {

4516
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff