zhangyong 8 月之前
父节点
当前提交
02fd8482dd
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      common/gpt4o_help.py

+ 3 - 1
common/gpt4o_help.py

@@ -124,6 +124,8 @@ class GPT4o():
                             data = json.loads(content)
                             title = data['新标题']
                             return title
+                        if '"' in content:
+                            content = content.replace('"', '')
                         return content
                     elif attempt == max_retries - 1:
                         return "这个视频,分享给我的老友,祝愿您能幸福安康"
@@ -389,5 +391,5 @@ class GPT4o():
 
 
 if __name__ == '__main__':
-    title = '恒大美女个个貌美如花如天仙。清纯一笑倾红颜女人一生如花恒大歌舞团倾国倾城个人写真'
+    title = '如果有人跟你说苍蝇不叮无缝的蛋,你怎么回'
     GPT4o.get_ai_title(title)