@superatomai/sdk-node 0.0.70 → 0.0.71

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.js CHANGED
@@ -8741,6 +8741,12 @@ var get_user_request = async (data, components, sendMessage, anthropicApiKey, gr
8741
8741
  };
8742
8742
  async function handleUserPromptRequest(data, components, sendMessage, anthropicApiKey, groqApiKey, geminiApiKey, openaiApiKey, llmProviders, collections, externalTools) {
8743
8743
  const response = await get_user_request(data, components, sendMessage, anthropicApiKey, groqApiKey, geminiApiKey, openaiApiKey, llmProviders, collections, externalTools);
8744
+ if (response.data?.component?.props?.config?.components) {
8745
+ response.data.component.props.config.components = response.data.component.props.config.components.map((comp) => ({
8746
+ ...comp,
8747
+ id: `comp_${Math.random().toString(36).substring(2, 8)}`
8748
+ }));
8749
+ }
8744
8750
  sendDataResponse4(
8745
8751
  response.id || data.id,
8746
8752
  {