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

扩充 ChatContext #1

Merged
merged 5 commits into from
Dec 26, 2022
Merged

扩充 ChatContext #1

merged 5 commits into from
Dec 26, 2022

Conversation

eric2788
Copy link
Contributor

  • 新增离线对话记录储存/加载
  • 新增重置对话
  • 新增移除最前面的一则对话记录以在不重置对话记录前提下防止超出文本限制
  • 新增unittest以及github action

@eric2788
Copy link
Contributor Author

另外经过搜索后,发现openai的 completions api本身没有内置对话记录的,不得不说现在这个强行插入的前置的方式确实是个好办法,就是可惜会超出文本限制,导致现在的对话记忆空间很有限

@solywsh solywsh merged commit fc79cac into solywsh:main Dec 26, 2022
@solywsh
Copy link
Owner

solywsh commented Dec 26, 2022

由于最初那段时间网上普遍的实现都是对网页请求进行抓包,显得非常不优雅,参考该项目之后Openaibot,才有了本项目。不过仔细观察网页版本的流量之后我怀疑官方也是实现了类似的实现,只是加入了更多前提和的道德约束,并且使用的也不是text-davinci-003模型。最后也感谢你提交的代码,相关代码我已merge,现在在tag v0.0.13中可以使用了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants