@reverbia/sdk 1.0.0-next.20251209143100 → 1.0.0-next.20251211090814

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1279,7 +1279,8 @@ function useChat(options) {
1279
1279
  messages,
1280
1280
  model,
1281
1281
  onData,
1282
- runTools = true
1282
+ runTools = true,
1283
+ headers
1283
1284
  }) => {
1284
1285
  const messagesValidation = validateMessages(messages);
1285
1286
  if (!messagesValidation.valid) {
@@ -1468,7 +1469,8 @@ Please inform the user about this issue and try to help them alternatively.`
1468
1469
  },
1469
1470
  headers: {
1470
1471
  "Content-Type": "application/json",
1471
- Authorization: `Bearer ${token}`
1472
+ Authorization: `Bearer ${token}`,
1473
+ ...headers
1472
1474
  },
1473
1475
  signal: abortController.signal
1474
1476
  });
@@ -456,6 +456,10 @@ type SendMessageArgs = BaseSendMessageArgs & {
456
456
  * Defaults to true if tools are configured.
457
457
  */
458
458
  runTools?: boolean;
459
+ /**
460
+ * Optional custom headers to include with the request.
461
+ */
462
+ headers?: Record<string, string>;
459
463
  };
460
464
  type SendMessageResult = {
461
465
  data: LlmapiChatCompletionResponse;
@@ -456,6 +456,10 @@ type SendMessageArgs = BaseSendMessageArgs & {
456
456
  * Defaults to true if tools are configured.
457
457
  */
458
458
  runTools?: boolean;
459
+ /**
460
+ * Optional custom headers to include with the request.
461
+ */
462
+ headers?: Record<string, string>;
459
463
  };
460
464
  type SendMessageResult = {
461
465
  data: LlmapiChatCompletionResponse;
@@ -1225,7 +1225,8 @@ function useChat(options) {
1225
1225
  messages,
1226
1226
  model,
1227
1227
  onData,
1228
- runTools = true
1228
+ runTools = true,
1229
+ headers
1229
1230
  }) => {
1230
1231
  const messagesValidation = validateMessages(messages);
1231
1232
  if (!messagesValidation.valid) {
@@ -1414,7 +1415,8 @@ Please inform the user about this issue and try to help them alternatively.`
1414
1415
  },
1415
1416
  headers: {
1416
1417
  "Content-Type": "application/json",
1417
- Authorization: `Bearer ${token}`
1418
+ Authorization: `Bearer ${token}`,
1419
+ ...headers
1418
1420
  },
1419
1421
  signal: abortController.signal
1420
1422
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reverbia/sdk",
3
- "version": "1.0.0-next.20251209143100",
3
+ "version": "1.0.0-next.20251211090814",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",