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

add support for api_key prop in ChatWidget and Chat #3

Merged
merged 4 commits into from
Oct 5, 2023
Merged

Conversation

anovazzi1
Copy link
Collaborator

feat(chatWidget): add support for api_key prop in ChatWidget and ChatWindow components to pass API key to sendMessage function

fix(controllers): modify sendMessage function to include api_key in the request data if provided

feat(index.tsx): add api_key prop to ChatWidget component in custom element definition

…Window components to pass API key to sendMessage function

fix(controllers): modify sendMessage function to include api_key in the request data if provided

feat(index.tsx): add api_key prop to ChatWidget component in custom element definition
… new flow ID, chat input field name, and API key

fix(index.ts): update headers object to include "api-key" header when provided in sendMessage function
@raj-wadhwa
Copy link

raj-wadhwa commented Oct 4, 2023

Hi @anovazzi1

Can you please get this PR reviewed and merge it as soon as possible?
This is much needed and the fix is correct.

@anovazzi1 anovazzi1 merged commit 9e4c3e6 into main Oct 5, 2023
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.

2 participants