We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 131bbd3 commit 9882d24Copy full SHA for 9882d24
.changeset/blue-steaks-boil.md
@@ -0,0 +1,5 @@
1
+---
2
+'ai': patch
3
4
+
5
+fix (ui/svelte): send data to server
packages/core/svelte/use-chat.ts
@@ -260,6 +260,7 @@ export function useChat({
260
function_call,
261
tools,
262
tool_choice,
263
+ data,
264
}: ChatRequestOptions = {},
265
) => {
266
if (!message.id) {
@@ -269,6 +270,7 @@ export function useChat({
269
270
const chatRequest: ChatRequest = {
271
messages: get(messages).concat(message as Message),
272
options,
273
274
...(functions !== undefined && { functions }),
275
...(function_call !== undefined && { function_call }),
276
...(tools !== undefined && { tools }),
0 commit comments