@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/README.md +942 -942
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8683,6 +8683,12 @@ var get_user_request = async (data, components, sendMessage, anthropicApiKey, gr
|
|
|
8683
8683
|
};
|
|
8684
8684
|
async function handleUserPromptRequest(data, components, sendMessage, anthropicApiKey, groqApiKey, geminiApiKey, openaiApiKey, llmProviders, collections, externalTools) {
|
|
8685
8685
|
const response = await get_user_request(data, components, sendMessage, anthropicApiKey, groqApiKey, geminiApiKey, openaiApiKey, llmProviders, collections, externalTools);
|
|
8686
|
+
if (response.data?.component?.props?.config?.components) {
|
|
8687
|
+
response.data.component.props.config.components = response.data.component.props.config.components.map((comp) => ({
|
|
8688
|
+
...comp,
|
|
8689
|
+
id: `comp_${Math.random().toString(36).substring(2, 8)}`
|
|
8690
|
+
}));
|
|
8691
|
+
}
|
|
8686
8692
|
sendDataResponse4(
|
|
8687
8693
|
response.id || data.id,
|
|
8688
8694
|
{
|