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
'Function to append a message to the chat, triggering an API call for the AI response. It returns a promise that resolves to full response message content when the API call is successfully finished, or throws an error when the API call fails.',
166
+
properties: [
167
+
{
168
+
type: 'ChatRequestOptions',
169
+
parameters: [
170
+
{
171
+
name: 'headers',
172
+
type: 'Record<string, string> | Headers',
173
+
description:
174
+
'Additional headers that should be to be passed to the API endpoint.',
175
+
},
176
+
{
177
+
name: 'body',
178
+
type: 'object',
179
+
description:
180
+
'Additional body JSON properties that should be sent to the API endpoint.',
181
+
},
182
+
{
183
+
name: 'data',
184
+
type: 'JSONValue',
185
+
description: 'Additional data to be sent to the API endpoint.',
186
+
},
187
+
],
188
+
},
189
+
],
166
190
},
167
191
{
168
192
name: 'reload',
@@ -199,41 +223,29 @@ Allows you to easily create a conversational user interface for your chatbot app
'Form submission handler that automatically resets the input field and appends a user message. You can use the `options` parameter to send additional data, headers and more to the server.',
205
229
properties: [
206
230
{
207
231
type: 'ChatRequestOptions',
208
232
parameters: [
209
233
{
210
-
name: 'options',
211
-
type: 'RequestOptions',
212
-
description: 'The options to be passed to the fetch call.',
213
-
properties: [
214
-
{
215
-
type: 'ChatRequestOptions',
216
-
parameters: [
217
-
{
218
-
name: 'headers',
219
-
type: 'Record<string, string> | Headers',
220
-
description:
221
-
'An optional object of headers to be passed to the API endpoint.',
222
-
},
223
-
{
224
-
name: 'body',
225
-
type: 'object',
226
-
description:
227
-
'An optional object to be passed to the API endpoint.',
228
-
},
229
-
],
230
-
},
231
-
],
234
+
name: 'headers',
235
+
type: 'Record<string, string> | Headers',
236
+
description:
237
+
'Additional headers that should be to be passed to the API endpoint.',
238
+
},
239
+
{
240
+
name: 'body',
241
+
type: 'object',
242
+
description:
243
+
'Additional body JSON properties that should be sent to the API endpoint.',
232
244
},
233
245
{
234
246
name: 'data',
235
247
type: 'JSONValue',
236
-
description: 'Additional data to be sent to the server.',
248
+
description: 'Additional data to be sent to the API endpoint.',
0 commit comments