chatgpt-java icon indicating copy to clipboard operation
chatgpt-java copied to clipboard

怎么优雅的将对话记录保存

Open zihao2981 opened this issue 1 year ago • 3 comments
trafficstars

再controller层好还是再listen中好

zihao2981 avatar Dec 28 '23 09:12 zihao2981

用户会话用一个唯一标示关联 然后用一个定时过期的map保存会话,key就是用户会话标识,value就是固定长度的队列保存会话记录 在调用openai的completions前后做切片

JsonSong89 avatar Feb 01 '24 03:02 JsonSong89

没看太懂,请问有demo可以看下嘛

发自我的 iPhone

在 2024年2月1日,11:02,JsonSong89 @.***> 写道:



用户会话用一个唯一标示关联 然后用一个定时过期的map保存会话,key就是用户会话标识,value就是固定长度的队列保存会话记录 在调用openai的completions前后做切片

— Reply to this email directly, view it on GitHubhttps://github.com/Grt1228/chatgpt-java/issues/253#issuecomment-1920411819, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMLOQWWBKEKRIPPWGFAVP73YRMAVBAVCNFSM6AAAAABBFJZUK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRQGQYTCOBRHE. You are receiving this because you authored the thread.Message ID: @.***>

zihao2981 avatar Feb 01 '24 06:02 zihao2981

没看太懂,请问有demo可以看下嘛

发自我的 iPhone

在 2024年2月1日,11:02,JsonSong89 @.***> 写道:



用户会话用一个唯一标示关联 然后用一个定时过期的map保存会话,key就是用户会话标识,value就是固定长度的队列保存会话记录 在调用openai的completions前后做切片

— Reply to this email directly, view it on GitHubhttps://github.com/Grt1228/chatgpt-java/issues/253#issuecomment-1920411819, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMLOQWWBKEKRIPPWGFAVP73YRMAVBAVCNFSM6AAAAABBFJZUK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRQGQYTCOBRHE. You are receiving this because you authored the thread.Message ID: @.***>

zihao2981 avatar Feb 01 '24 06:02 zihao2981