Skip to content

Commit

Permalink
Added conversation history to NL Bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
salmenus committed May 1, 2024
1 parent cb45f05 commit 21b94c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/js/nlbridge/src/nlbridge/chatAdapter/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export class NLBridgeFetchAdapter<AiMsg = string> extends NLBridgeAbstractAdapte
action,
payload: {
message,
conversationHistory: extras.conversationHistory,
contextId: this.context?.contextId,
},
}),
Expand Down
1 change: 1 addition & 0 deletions packages/js/nlbridge/src/nlbridge/chatAdapter/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export class NLBridgeStreamAdapter<AiMsg> extends NLBridgeAbstractAdapter<AiMsg>
action: 'chat-stream',
payload: {
message,
conversationHistory: extras.conversationHistory,
contextId: this.context?.contextId,
},
}),
Expand Down

0 comments on commit 21b94c4

Please sign in to comment.