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

从历史记录获取reply有并发风险 #92

Closed
1 task done
chj9 opened this issue Jan 3, 2024 · 1 comment
Closed
1 task done

从历史记录获取reply有并发风险 #92

chj9 opened this issue Jan 3, 2024 · 1 comment
Labels
feature New feature or request

Comments

@chj9
Copy link

chj9 commented Jan 3, 2024

⚠️ 确认 issue 是否已存在 ⚠️

  • 我已经搜索了现有的问题,没有找到相关 issue。

功能描述 📝

接口
/api/chat/tokens

示例 🌈

image
如图所示,该查询语句是获取回复的最后一条数据的
如果出现同个账号不同地方登录
出现同时使用的情况,可能会返回的token数据就会串了

解决方式 🔦

最好/api/chat/tokens接口的body入参新增chatId的入参

@chj9 chj9 added the feature New feature or request label Jan 3, 2024
@yangjian102621
Copy link
Owner

yangjian102621 commented Jan 4, 2024

感谢反馈,已修复,将在 v3.2.4 版本上线

039b70e

b99ead6c4a9d3c7e4f1948cc3490c31

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

No branches or pull requests

2 participants