This commit is contained in:
Charlie Kolb 2024-11-07 16:36:46 +01:00
parent 4538520678
commit 9de3255465
No known key found for this signature in database

View file

@ -211,15 +211,6 @@ export const useActions = () => {
OPEN_AI_NODE_MESSAGE_ASSISTANT_TYPE, OPEN_AI_NODE_MESSAGE_ASSISTANT_TYPE,
]; ];
const node1 = addedNodes[0];
if (node1 !== undefined && node1.type === AGENT_NODE_TYPE) {
console.log(node1);
setAddedNodeActionParameters({
name: 'x',
key: 'x',
value: 'x',
});
}
const isCompatibleNode = addedNodes.some((node) => COMPATIBLE_CHAT_NODES.includes(node.type)); const isCompatibleNode = addedNodes.some((node) => COMPATIBLE_CHAT_NODES.includes(node.type));
if (!isCompatibleNode) return false; if (!isCompatibleNode) return false;