Skip to content

Commit 9882d24

Browse files
lgrammelandrewrisse
andauthoredMay 30, 2024··
fix (ui/svelte): send data to server (#1748)
Co-authored-by: Andrew Risse <andrewrisse@gmail.com> Co-authored-by: Andrew Risse <52644157+andrewrisse@users.noreply.github.com>
1 parent 131bbd3 commit 9882d24

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
 

‎.changeset/blue-steaks-boil.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'ai': patch
3+
---
4+
5+
fix (ui/svelte): send data to server

‎packages/core/svelte/use-chat.ts

+2
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ export function useChat({
260260
function_call,
261261
tools,
262262
tool_choice,
263+
data,
263264
}: ChatRequestOptions = {},
264265
) => {
265266
if (!message.id) {
@@ -269,6 +270,7 @@ export function useChat({
269270
const chatRequest: ChatRequest = {
270271
messages: get(messages).concat(message as Message),
271272
options,
273+
data,
272274
...(functions !== undefined && { functions }),
273275
...(function_call !== undefined && { function_call }),
274276
...(tools !== undefined && { tools }),

0 commit comments

Comments
 (0)
Please sign in to comment.