Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] 增强聊天记录导出能力 #580

Closed
feiyu0 opened this issue Apr 7, 2023 · 5 comments
Closed

[Feature] 增强聊天记录导出能力 #580

feiyu0 opened this issue Apr 7, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@feiyu0
Copy link

feiyu0 commented Apr 7, 2023

如题

我想用它来做一些日文小说的翻译和润色,然后我看到有下载,但是下载那边是把我和chatgpt的回复一起下载下来,请问可以添加一个只下载chatgpt回复内容的功能吗

@AreChen
Copy link

AreChen commented Apr 7, 2023

你让他总结然后复制单条对话

@asaketsu
Copy link

asaketsu commented Apr 7, 2023

关了吧,有这功能,自挖

@Yidadaa
Copy link
Collaborator

Yidadaa commented Apr 7, 2023

后续会增强分享能力,允许用户点选部分聊天记录导出。不过暂时你还是需要导出所有 markdown 文本,然后手动处理,你可以让 chatgpt 帮你写一些脚本来自动完成这个操作。

@Yidadaa Yidadaa changed the title 你好,能不能添加只复制chatgpt回复内容的功能 [Feature] 增强聊天记录导出能力 Apr 7, 2023
@HenMie
Copy link

HenMie commented Apr 7, 2023

我试着写个bat,发现不太会写bat……python将就下吧

import re
with open('input.md', 'r', encoding='utf-8') as f:
    content = f.read()
    matches = re.findall(r'## 来自 ChatGPT 的消息:\n(.+?)\n\n', content, re.DOTALL)
    if matches:
        with open('output.txt', 'w', encoding='utf-8') as f_out:
            for match in matches:
                f_out.write(match + '\n')
    else:
        print("没有匹配到内容")

@feiyu0
Copy link
Author

feiyu0 commented Apr 8, 2023

谢谢大家,我让gpt4给我写了一个,读取txt长文本,自动分段翻译的脚本了,就是比较慢,谢谢大家

@Yidadaa Yidadaa added the enhancement New feature or request label Apr 10, 2023
Yidadaa added a commit that referenced this issue May 21, 2023
feat: close #580 export messages as image
jinker pushed a commit to jinker/ChatGPT-Next-Web that referenced this issue Jun 19, 2023
Jeremy-Hibiki pushed a commit to Jeremy-Hibiki/ChatGPT-Next-Web that referenced this issue Sep 5, 2023
Jeremy-Hibiki pushed a commit to Jeremy-Hibiki/ChatGPT-Next-Web that referenced this issue Sep 5, 2023
gaogao1030 pushed a commit to gaogao1030/ChatGPT-Next-Web that referenced this issue May 16, 2024
gaogao1030 pushed a commit to gaogao1030/ChatGPT-Next-Web that referenced this issue May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants