chatgpt-java
chatgpt-java copied to clipboard
怎么优雅的将对话记录保存
再controller层好还是再listen中好
用户会话用一个唯一标示关联 然后用一个定时过期的map保存会话,key就是用户会话标识,value就是固定长度的队列保存会话记录 在调用openai的completions前后做切片
没看太懂,请问有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: @.***>
没看太懂,请问有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: @.***>