소스 검색

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

RiverRay 10 달 전
부모
커밋
9a69c5bd7c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/utils.ts

+ 2 - 2
app/utils.ts

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