Skip to content

Commit 3f756a6

Browse files
jeremyphilemonlgrammel
andauthoredJul 1, 2024··
fix (ai/react): include fetch parameter as part of useChat (#2156)
Co-authored-by: Lars Grammel <lars.grammel@gmail.com>
1 parent 9e347dd commit 3f756a6

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
 

‎.changeset/sweet-kiwis-clean.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ai-sdk/react': patch
3+
---
4+
5+
fix (ai/react): include fetch parameter as part of useChat

‎packages/react/src/use-chat.ts

+2
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ export function useChat({
196196
headers,
197197
body,
198198
generateId = generateIdFunc,
199+
fetch,
199200
}: UseChatOptions & {
200201
key?: string;
201202

@@ -405,6 +406,7 @@ By default, it's set to 0, which will disable the feature.
405406
messagesRef,
406407
abortControllerRef,
407408
generateId,
409+
fetch,
408410
],
409411
);
410412

0 commit comments

Comments
 (0)
Please sign in to comment.