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

Pass 'data' attribute to endpoint on react/use-chat #1389

Closed
wants to merge 4 commits into from

Conversation

gaspar09
Copy link
Collaborator

No description provided.

@gaspar09 gaspar09 requested a review from MaxLeiter April 19, 2024 19:35
@gaspar09 gaspar09 force-pushed the gaspar/pass-data-react-use-chat branch from 5542ad7 to 800f28d Compare April 19, 2024 20:00
role,
content,
tool_call_id,
...(name !== undefined && { name }),
...(data !== undefined && { data }),
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we want to pass this on for messages, we'd need this to change in Svelte, Solid and Vue useChat as well.

@lgrammel
Copy link
Collaborator

lgrammel commented Jun 5, 2024

Superseeded by #1839

@lgrammel lgrammel closed this Jun 5, 2024
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.

None yet

2 participants