-
Notifications
You must be signed in to change notification settings - Fork 140
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
feat: Attach the user's name to the user message payload if known #28
Conversation
Thank you for your work! One concern I have is that since this is the first custom field(not required for openai) to put in the message, wonder if everyone want it to be added or not. |
I was thinking about adding it to the core project as well |
If you don't mind, please let me keep this PR open for a while. |
No problem |
Went ahead and added it to the |
Thanks for going ahead! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a label of new field in translations?
Co-authored-by: jekalmin <jekalmin@hotmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for a change!
I left a quick comment below :D
README.md
Outdated
@@ -55,6 +56,7 @@ https://github.com/jekalmin/extended_openai_conversation/assets/2917984/64ba656e | |||
By clicking a button from Edit Assist, Options can be customized.<br/> | |||
Options include [OpenAI Conversation](https://www.home-assistant.io/integrations/openai_conversation/) options and two new options. | |||
|
|||
- `Attach Username`: Pass the active user's name (if applicaple) to OpenAI via rhe message payload. Currently, this only applies to conversations through the UI or REST API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious of what rhe
stands for. Can it be a typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typeo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved
Spelling issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work!
I will apply this change in next release (currently released in 0.0.9-beta)
Motivation
I wanted my assistant to know who it was talking to.
Approach
If there is a user_id attached to the context that is provided via
user_input
, retrieve the name of the user from HASS's authentication manager. This primarily applies when interacting with the UI or invoking the process service from a user context.Future Work
Wake Words
Add voice recognition to wake word detection to differentiate the user who started the conversation
Full Feature
Add voice recognition to differentiate the user who is currently speaking - allowing for multiple participate in a conversation