feat: 内蒙古呼伦贝尔职教 OEM 支持
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user