From 21b94c41c1144164068a839e60dedd65da7992dd Mon Sep 17 00:00:00 2001 From: Salmen Hichri Date: Wed, 1 May 2024 20:34:47 +0100 Subject: [PATCH] Added conversation history to NL Bridge --- packages/js/nlbridge/src/nlbridge/chatAdapter/fetch.ts | 1 + packages/js/nlbridge/src/nlbridge/chatAdapter/stream.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/js/nlbridge/src/nlbridge/chatAdapter/fetch.ts b/packages/js/nlbridge/src/nlbridge/chatAdapter/fetch.ts index 2b72b70b..2a074d8a 100644 --- a/packages/js/nlbridge/src/nlbridge/chatAdapter/fetch.ts +++ b/packages/js/nlbridge/src/nlbridge/chatAdapter/fetch.ts @@ -24,6 +24,7 @@ export class NLBridgeFetchAdapter extends NLBridgeAbstractAdapte action, payload: { message, + conversationHistory: extras.conversationHistory, contextId: this.context?.contextId, }, }), diff --git a/packages/js/nlbridge/src/nlbridge/chatAdapter/stream.ts b/packages/js/nlbridge/src/nlbridge/chatAdapter/stream.ts index c07dd939..a120a004 100644 --- a/packages/js/nlbridge/src/nlbridge/chatAdapter/stream.ts +++ b/packages/js/nlbridge/src/nlbridge/chatAdapter/stream.ts @@ -26,6 +26,7 @@ export class NLBridgeStreamAdapter extends NLBridgeAbstractAdapter action: 'chat-stream', payload: { message, + conversationHistory: extras.conversationHistory, contextId: this.context?.contextId, }, }),