koishijs / chatgpt-bot

AI conversation based on ChatGPT | 基于 ChatGPT 的 AI 对话机器人
https://chatgpt.koishi.chat
MIT License
70 stars 13 forks source link

feat: isolate context by different appoach #15

Closed MaikoTan closed 1 year ago

MaikoTan commented 1 year ago

Per https://github.com/koishijs/chatgpt-bot/issues/8#issuecomment-1340258845

So then we can maintain the conversation context history within one channel.

为了 https://github.com/koishijs/chatgpt-bot/issues/8#issuecomment-1340258845

于是我们可以在一个频道里维持对话上下文历史。


cc @shigma @TimeBather

TimeBather commented 1 year ago

And for the "getMapKey" function , I think there is a better naming , "getContextRecoverKey" or "getContextStorageKey" , which means "Get the key for recover/storage the Context"

MaikoTan commented 1 year ago

I need people to review this Pull Request once again, especially the document for the conversation context. Then this Pull Request can be merged as soon as possible!

我需要人们再次审查这个拉取请求,尤其是对话上下文的文档。那么这个拉取请求可以尽快合并!