Closed xiewenqian closed 6 months ago
@bincooo
types.ConversationContext
的Chain
中有个cahce
执行器,可以缓存每次对话。
如果你想手动处理历史消息,可以自行调用store.CacheMessages()
覆盖:
https://github.com/bincooo/chatgpt-adapter/blob/03a04e55978e3ed6b6f1e516b1b890367f1c10a4/store/message.go#L16
https://github.com/bincooo/chatgpt-adapter/blob/d727e8bff870ebdcb2e5fdf8c2faf035a91d8a96/examples/gemini/main.go#L41
我在使用bingAI的时候,需要从上一次会话的末尾继续,请问要如何调用接口