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

Fix conversation_id renew every time #247

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

guinmoon
Copy link

In this fork I fixed an issue where the dialog with wyoming satellite starts again every time even though the conversation_id is provided.
Related to this.

In this fork I fixed an issue where the dialog with wyoming satellite starts again every time even though the conversation_id is provided.
@caohuongls
Copy link

caohuongls commented Sep 22, 2024

Hi @guinmoon ,

I've tested the fork, but it doesn't seem to work for me. I'm using the Wyoming satellite with a Raspberry Pi and a Mic 2 HAT. After the first conversation, when I use the wake word again, it starts a new conversation instead of continuing the previous one.
I get extended_openai_conversation from HACS
Do you know what might be causing this issue? Thanks!

@michaelberg79
Copy link

Thx guinmoon,
This branch solved the problem with loosing conversation, when this branch gets merged?

Copy link
Owner

@jekalmin jekalmin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!
I would have to leave this PR open until it's certain that we can mutate user_input.
Please comment below if anyone has an idea.

conversation_id = user_input.conversation_id
if user_input.conversation_id is None:
conversation_id = ulid.ulid()
user_input.conversation_id = conversation_id
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm quite not sure if modifying any values(such as conversation_id) in user_input is the right way.

@slyticoon
Copy link

Tested this change and it did not work for me using a Wyoming Satellite.

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

Successfully merging this pull request may close these issues.

5 participants