Merge pull request #6118 from ChatGPTNextWeb/feat/issue-6104-deepseek-reasoning-content
This commit is contained in:
commit
9a69c5bd7c
|
@ -16,8 +16,8 @@ export function trimTopic(topic: string) {
|
|||
return (
|
||||
topic
|
||||
// fix for gemini
|
||||
.replace(/^["""*]+|[""*]+$/g, "")
|
||||
.replace(/[,。!?""""、,.!?*]*$/, "")
|
||||
.replace(/^["“”*]+|["“”*]+$/g, "")
|
||||
.replace(/[,。!?”“"、,.!?*]*$/, "")
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue