mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 21:00:58 +03:00
return response
This commit is contained in:
@@ -1825,8 +1825,10 @@ export class App {
|
|||||||
flowGraph: getTelemetryFlowObj(nodes, edges)
|
flowGraph: getTelemetryFlowObj(nodes, edges)
|
||||||
})
|
})
|
||||||
|
|
||||||
// Only return ChatId when its Internal OR incoming input has ChatId, to avoid confusion when calling API
|
// Prepare response
|
||||||
if (incomingInput.chatId || isInternal) result.chatId = chatId
|
result.chatId = chatId
|
||||||
|
if (sessionId) result.sessionId = sessionId
|
||||||
|
if (memoryType) result.memoryType = memoryType
|
||||||
|
|
||||||
return res.json(result)
|
return res.json(result)
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
|
|||||||
Reference in New Issue
Block a user