2
0

🚑 Fix invalid timeout for long running integrations

This commit is contained in:
Baptiste Arnaud
2023-12-19 14:24:36 +01:00
parent 655b32ef75
commit 64fc59bd3a
3 changed files with 25 additions and 14 deletions

View File

@ -145,8 +145,9 @@ export const createChatCompletion = createAction({
},
stream: {
getStreamVariableId: (options) =>
options.responseMapping?.find((res) => res.item === 'Message content')
?.variableId,
options.responseMapping?.find(
(res) => res.item === 'Message content' || !res.item
)?.variableId,
run: async ({ credentials: { apiKey }, options, variables }) => {
const config = {
apiKey,