TheExplainthis / ChatGPT-Line-Bot

This is a repository that allows you to integrate ChatGPT into Line.
MIT License
1.53k stars 1.86k forks source link

對話超過一定的次數就會整個失效 #10

Closed Mader0801 closed 1 year ago

Mader0801 commented 1 year ago

image

TheExplainthis commented 1 year ago

目前有更新至 v1.1.0 版本,建議可以直接 PR 回去,並記得修改 Environment Variable、更新 openai 的版本,應該可以避免這個問題。

maxchen2k commented 1 year ago

目前有更新至 v1.1.0 版本,建議可以直接 PR 回去,並記得修改 Environment Variable、更新 openai 的版本,應該可以避免這個問題。

請問 Environment Variable 要修改哪些部份? 有增加新的 Variable ?

maxchen2k commented 1 year ago

修改 requirements.txt & update dependence 之後還是會發生相同問題

TheExplainthis commented 1 year ago

更新哪些變數可以從 README.md 的下半部查看,不僅是更新 openai 版本和 環境變數,最大的差異在於舊版是用 text completion 而新版是用 chat completion,所以可以連程式碼一起更新回你原本的 Repo!