怎么优雅的将对话记录保存
zihao2981 opened this issue · 3 comments
zihao2981 commented
再controller层好还是再listen中好
JsonSong89 commented
用户会话用一个唯一标示关联
然后用一个定时过期的map保存会话,key就是用户会话标识,value就是固定长度的队列保存会话记录
在调用openai的completions前后做切片
zihao2981 commented
没看太懂,请问有demo可以看下嘛
发自我的 iPhone
在 2024年2月1日,11:02,JsonSong89 ***@***.***> 写道:
用户会话用一个唯一标示关联
然后用一个定时过期的map保存会话,key就是用户会话标识,value就是固定长度的队列保存会话记录
在调用openai的completions前后做切片
—
Reply to this email directly, view it on GitHub<#253 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMLOQWWBKEKRIPPWGFAVP73YRMAVBAVCNFSM6AAAAABBFJZUK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRQGQYTCOBRHE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
zihao2981 commented
没看太懂,请问有demo可以看下嘛
发自我的 iPhone
在 2024年2月1日,11:02,JsonSong89 ***@***.***> 写道:
用户会话用一个唯一标示关联
然后用一个定时过期的map保存会话,key就是用户会话标识,value就是固定长度的队列保存会话记录
在调用openai的completions前后做切片
—
Reply to this email directly, view it on GitHub<#253 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMLOQWWBKEKRIPPWGFAVP73YRMAVBAVCNFSM6AAAAABBFJZUK2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRQGQYTCOBRHE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>