Fix issues with AI-generated pull requests, powered by ChatGPT
1、把 AutoPR 设置到项目中
创建 .github/workflows/autopr.yml, 模板:https://github.com/irgolic/AutoPR-template/blob/main/.github/workflows/autopr.yml
里面设置一下openai key
2、创建一个label,名称 AutoPR
3、new 一个 issue,包含清晰的问题和步骤描述。
4、增加 AutoPR 标签到这个 issue
自动触发 action,创建 autopr/issue-# 分支,并发起 pull request
5、人工 Review 代码,合并代码
Well-written issues often lead to better results.
GPT2FastTokenizer
tiktoken