You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/docs/api-reference/use-chat.mdx
+5
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,11 @@ Options passed to `useChat`:
105
105
'credentials',
106
106
'"omit" | "same-origin" | "include"',
107
107
'An optional literal that sets the mode of credentials to be used on the request. Defaults to "same-origin".'
108
+
],
109
+
[
110
+
'sendExtraMessageFields',
111
+
'boolean',
112
+
'An optional boolean that determines whether to send extra fields you\'ve added to `messages`. Defaults to `false` and only the `content` and `role` fields will be sent to the API endpoint.'
Copy file name to clipboardExpand all lines: docs/pages/docs/api-reference/use-completion.mdx
+5
Original file line number
Diff line number
Diff line change
@@ -147,6 +147,11 @@ export default function Completion() {
147
147
'credentials',
148
148
'"omit" | "same-origin" | "include"',
149
149
'An optional literal that sets the mode of credentials to be used on the request. Defaults to "same-origin".'
150
+
],
151
+
[
152
+
'sendExtraMessageFields',
153
+
'boolean',
154
+
"An optional boolean that determines whether to send extra fields you've added to `messages`. Defaults to `false` and only the `content` and `role` fields will be sent to the API endpoint."
0 commit comments