Merge pull request #6118 from ChatGPTNextWeb/feat/issue-6104-deepseek-reasoning-content

This commit is contained in:
RiverRay 2025-01-31 06:48:00 +08:00 committed by GitHub
commit 9a69c5bd7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,8 +16,8 @@ export function trimTopic(topic: string) {
return ( return (
topic topic
// fix for gemini // fix for gemini
.replace(/^["""*]+|[""*]+$/g, "") .replace(/^["“”*]+|["“”*]+$/g, "")
.replace(/[,。!?""""、,.!?*]*$/, "") .replace(/[,。!?”“"、,.!?*]*$/, "")
); );
} }