Skip to content
This repository was archived by the owner on Aug 12, 2022. It is now read-only.

Commit 7b66c7a

Browse files
author
I354751
committed
fix: only passing memory parameter when not null
1 parent dfe77e1 commit 7b66c7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/apis/build/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ export default class Build {
2020
message,
2121
conversation_id: options.conversationId,
2222
language: options.language || this.language,
23-
memory: memory,
2423
log_level: log_level,
2524
}
25+
if (memory)
26+
data['memory'] = memory
2627

2728
const request = agent('POST', `${constants.DIALOG_ENDPOINT}/dialog`)
2829
.set('Authorization', `Token ${token}`)

0 commit comments

Comments
 (0)