@spteck/react-controls-v2 2.0.17 → 2.0.18

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.
package/dist/index.mjs CHANGED
@@ -520,7 +520,8 @@ ${message.input}`;
520
520
  method: "POST",
521
521
  headers: {
522
522
  "Content-Type": "application/json",
523
- "Accept": "text/event-stream"
523
+ "Accept": "text/event-stream",
524
+ ...config.requestHeaders && Object.keys(config.requestHeaders).length > 0 ? config.requestHeaders : {}
524
525
  },
525
526
  body: JSON.stringify(payload),
526
527
  signal: controller.signal
@@ -26237,7 +26238,8 @@ const AIAssistant = (props) => {
26237
26238
  const styles2 = useAIAssistantStyles();
26238
26239
  const { sendMessage, cancelRequest } = useAIAssistant({
26239
26240
  endpoint: openAIConfig == null ? void 0 : openAIConfig.endpoint,
26240
- mcpServers: openAIConfig == null ? void 0 : openAIConfig.mcpServers
26241
+ mcpServers: openAIConfig == null ? void 0 : openAIConfig.mcpServers,
26242
+ requestHeaders: openAIConfig == null ? void 0 : openAIConfig.requestHeaders
26241
26243
  });
26242
26244
  const forceScrollToBottom = React.useCallback(() => {
26243
26245
  if (chatListRef.current) {