-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
chat API does not support user-defined conversation id #11637
Comments
The issue you're experiencing with the chat API not supporting user-defined For starting a new conversation, you should leave the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
We can support a custom conversation_id, but it must meet the following requirements:
Can you implement this? |
I can make sure that customized conversation_id is valid UUID. Since it is a valid UUID, and also it is the primary key for table "conversations" in database, it is impossible to be conflicted with any existing data theoretically. |
@laipz8200, Is there any problem with my PR? |
Hi @cyflhn. We’re not sure what benefits customizable IDs might bring. In my opinion, when integrating with external systems, we can use the IDs generated by Dify or create a mapping table externally. Could you please elaborate on the motivation behind this proposal? |
hi @laipz8200. Glad to have a disscussion with dify team. |
Hi @cyflhn. After an internal discussion, we realized that evaluating whether to accept client-submitted primary keys might take some time. If possible, we’d appreciate it if you could keep this feature in your own repository for now and share your experiences with us as you use it. Thank you! |
Self Checks
Dify version
0.13.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
get a normal response
❌ Actual Behavior
if the response will be "conversation not exists"
The text was updated successfully, but these errors were encountered: