fix: 更新正则表达式以滤除思考过程的 details/think 标签

This commit is contained in:
2025-03-31 11:18:44 +08:00
parent 8b87de67c1
commit 71de9bb6d2

View File

@ -150,8 +150,8 @@ const getPopularInquiriesByRole = () => {
};
const scrollArea = ref<HTMLDivElement | null>(null);
// 滤除 details 标签正则
const regex = /(?<=<\/details>\n\n)[\s\S]*/gm;
// 滤除思考过程 details/think 标签正则
const regex = /(?<=<\/details|think>\n\n)[\s\S]*/gm;
// 常见问题
const inquiries = computed(