Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zihao2981 opened this issue Dec 28, 2023 · 3 comments
Open

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

zihao2981 opened this issue Dec 28, 2023 · 3 comments

Comments

@zihao2981
Copy link

再controller层好还是再listen中好

@JsonSong89
Copy link

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

@zihao2981
Copy link
Author

zihao2981 commented Feb 1, 2024 via email

@zihao2981
Copy link
Author

zihao2981 commented Feb 1, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants