feat: 内蒙古呼伦贝尔职教 OEM 支持

This commit is contained in:
2025-04-17 20:16:05 +08:00
parent 71de9bb6d2
commit 39c581f3f9
5 changed files with 27 additions and 3 deletions

View File

@ -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) {