anc95 / ChatGPT-CodeReview

🐥 A code review bot powered by ChatGPT
https://github.com/apps/cr-gpt
ISC License
3.77k stars 361 forks source link

Support custom OpenAI API endpoint #84

Closed qihangnet closed 1 year ago

qihangnet commented 1 year ago

Setting custom endpoint can solve the problem of Chinese users not being able to directly access OpenAI's official API endpoint.

anc95 commented 1 year ago

@qihangnet Could you please tell me why you are unable to access the OpenAI endpoint in China? Have you hosted your app on a cloud machine in China? Also, thank you for your PR.

qihangnet commented 1 year ago

@anc95 看你应该可以用中文,我用中文解释一下。 目前存在以下场景:

综上原因,我才提交这样一个简单的 PR,来适配以上情况下的场景仍然可以使用这个项目来解决开发。

qihangnet commented 1 year ago

我再补充一下一句:你可以看一下 https://github.com/nektos/act 这个库,就知道我说的场景了

anc95 commented 1 year ago

理解了哈哈,我原本想的是都是在 Github 的机器上跑 action,应该不会有网络问题,谢谢解释 和 PR