Skip to content

fix (ui/svelte): send data to server#1748

Merged
lgrammel merged 6 commits intomainfrom
lg/1738
May 30, 2024
Merged

fix (ui/svelte): send data to server#1748
lgrammel merged 6 commits intomainfrom
lg/1738

Conversation

@lgrammel
Copy link
Copy Markdown
Collaborator

No description provided.

@lgrammel lgrammel self-assigned this May 30, 2024
@lgrammel lgrammel merged commit 9882d24 into main May 30, 2024
@lgrammel lgrammel deleted the lg/1738 branch May 30, 2024 02:57
Rajaniraiyn pushed a commit to Rajaniraiyn/ai that referenced this pull request Jun 1, 2024
Co-authored-by: Andrew Risse <andrewrisse@gmail.com>
Co-authored-by: Andrew Risse <52644157+andrewrisse@users.noreply.github.com>
@dalton5
Copy link
Copy Markdown

dalton5 commented Jun 23, 2024

Hi. When will it be fixed please? Thanks

@lgrammel
Copy link
Copy Markdown
Collaborator Author

@dalton5 this has already been merged and shipped

@dalton5
Copy link
Copy Markdown

dalton5 commented Jun 24, 2024

I still have the error where data is not sent in the body.

I am with sveltekit

` <form
on:submit={(e) => {
handleSubmit(e, { data: { model: selectedModel } });
tick;
scrollToBottom();
}}

`

And in my server:

export const POST = (async ({ request }) => { const val= await request.json();

I only have messages in val. I should also have data. Related to this issue: #1270

In my package.json: "ai": "^3.2.5",

@ghoshsanjoy78
Copy link
Copy Markdown

ghoshsanjoy78 commented Aug 21, 2024

I am still having this issue as well. Any fix ?

Sometimes I see handleSubmit being called twice. The first time, data is received by the server while the second time, it comes through as empty / undefined

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.

4 participants