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

multiple calls to TongYiChatClient leads to uncerntain results. #3783

Open
chinafzy opened this issue Jun 30, 2024 · 1 comment
Open

multiple calls to TongYiChatClient leads to uncerntain results. #3783

chinafzy opened this issue Jun 30, 2024 · 1 comment

Comments

@chinafzy
Copy link

TongYiChatClient and TongYiAutoConfiguration

TongYiAutoConfiguration creates a default tongYiChatClient,we can use it in the project.

TongYiChatClient save messages in a MessageManager. So all callers share the same message history !

Therefore, in the case of multiple clients calling simultaneously, the MessageHistory will become disordered, and the Chat will also become chaotic.

@yuluo-yx yuluo-yx added kind/bug Mark as bug area/ai labels Jul 4, 2024
@yuluo-yx yuluo-yx added this to the Spring Cloud Alibaba AI milestone Jul 4, 2024
@yuluo-yx
Copy link
Collaborator

yuluo-yx commented Jul 4, 2024

Thanks for the feedback, the community will fix it

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

No branches or pull requests

2 participants