🚑 Fix invalid timeout for long running integrations
This commit is contained in:
@@ -16,18 +16,15 @@ export const ForgedBlockNodeContent = ({ block }: Props) => {
|
|||||||
|
|
||||||
const setVariableIds = actionDef?.getSetVariableIds?.(block.options) ?? []
|
const setVariableIds = actionDef?.getSetVariableIds?.(block.options) ?? []
|
||||||
|
|
||||||
|
const isConfigured =
|
||||||
|
block.options?.action && (!blockDef?.auth || block.options.credentialsId)
|
||||||
return (
|
return (
|
||||||
<Stack>
|
<Stack>
|
||||||
<Text
|
<Text color={isConfigured ? 'currentcolor' : 'gray.500'} noOfLines={1}>
|
||||||
color={block.options?.action ? 'currentcolor' : 'gray.500'}
|
{isConfigured ? block.options.action : 'Configure...'}
|
||||||
noOfLines={1}
|
|
||||||
>
|
|
||||||
{block.options?.action &&
|
|
||||||
(!blockDef?.auth || block.options.credentialsId)
|
|
||||||
? block.options.action
|
|
||||||
: 'Configure...'}
|
|
||||||
</Text>
|
</Text>
|
||||||
{typebot &&
|
{typebot &&
|
||||||
|
isConfigured &&
|
||||||
setVariableIds.map((variableId, idx) => (
|
setVariableIds.map((variableId, idx) => (
|
||||||
<SetVariableLabel
|
<SetVariableLabel
|
||||||
key={variableId + idx}
|
key={variableId + idx}
|
||||||
|
|||||||
@@ -23,18 +23,31 @@ export const executeIntegration =
|
|||||||
return executeGoogleAnalyticsBlock(state, block)
|
return executeGoogleAnalyticsBlock(state, block)
|
||||||
case IntegrationBlockType.EMAIL:
|
case IntegrationBlockType.EMAIL:
|
||||||
return executeSendEmailBlock(state, block)
|
return executeSendEmailBlock(state, block)
|
||||||
case IntegrationBlockType.WEBHOOK:
|
|
||||||
case IntegrationBlockType.ZAPIER:
|
case IntegrationBlockType.ZAPIER:
|
||||||
case IntegrationBlockType.MAKE_COM:
|
case IntegrationBlockType.MAKE_COM:
|
||||||
case IntegrationBlockType.PABBLY_CONNECT:
|
case IntegrationBlockType.PABBLY_CONNECT:
|
||||||
|
return {
|
||||||
|
...(await executeWebhookBlock(state, block)),
|
||||||
|
startTimeShouldBeUpdated: true,
|
||||||
|
}
|
||||||
|
case IntegrationBlockType.WEBHOOK:
|
||||||
return executeWebhookBlock(state, block)
|
return executeWebhookBlock(state, block)
|
||||||
case IntegrationBlockType.OPEN_AI:
|
case IntegrationBlockType.OPEN_AI:
|
||||||
return executeOpenAIBlock(state, block)
|
return {
|
||||||
|
...(await executeOpenAIBlock(state, block)),
|
||||||
|
startTimeShouldBeUpdated: true,
|
||||||
|
}
|
||||||
case IntegrationBlockType.PIXEL:
|
case IntegrationBlockType.PIXEL:
|
||||||
return executePixelBlock(state, block)
|
return executePixelBlock(state, block)
|
||||||
case IntegrationBlockType.ZEMANTIC_AI:
|
case IntegrationBlockType.ZEMANTIC_AI:
|
||||||
return executeZemanticAiBlock(state, block)
|
return {
|
||||||
|
...(await executeZemanticAiBlock(state, block)),
|
||||||
|
startTimeShouldBeUpdated: true,
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return executeForgedBlock(state, block)
|
return {
|
||||||
|
...(await executeForgedBlock(state, block)),
|
||||||
|
startTimeShouldBeUpdated: true,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,8 +145,9 @@ export const createChatCompletion = createAction({
|
|||||||
},
|
},
|
||||||
stream: {
|
stream: {
|
||||||
getStreamVariableId: (options) =>
|
getStreamVariableId: (options) =>
|
||||||
options.responseMapping?.find((res) => res.item === 'Message content')
|
options.responseMapping?.find(
|
||||||
?.variableId,
|
(res) => res.item === 'Message content' || !res.item
|
||||||
|
)?.variableId,
|
||||||
run: async ({ credentials: { apiKey }, options, variables }) => {
|
run: async ({ credentials: { apiKey }, options, variables }) => {
|
||||||
const config = {
|
const config = {
|
||||||
apiKey,
|
apiKey,
|
||||||
|
|||||||
Reference in New Issue
Block a user