From 2667548041ed8b1add7928a24b66b35e6d36ae5b Mon Sep 17 00:00:00 2001 From: Faruk AYDIN Date: Wed, 28 Feb 2024 13:44:04 +0100 Subject: [PATCH] feat: Introduce optional session ID for helix app --- .../backend/src/apps/helix/actions/new-chat/index.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/apps/helix/actions/new-chat/index.js b/packages/backend/src/apps/helix/actions/new-chat/index.js index 54fa1c60..c0ba74da 100644 --- a/packages/backend/src/apps/helix/actions/new-chat/index.js +++ b/packages/backend/src/apps/helix/actions/new-chat/index.js @@ -13,11 +13,20 @@ export default defineAction({ description: 'Prompt to start the chat with.', variables: true, }, + { + label: 'Session ID', + key: 'sessionId', + type: 'string', + required: false, + description: + 'ID of the chat session to continue. Leave empty to start a new chat.', + variables: true, + }, ], async run($) { const response = await $.http.post('/api/v1/sessions/chat', { - session_id: '', + session_id: $.step.parameters.sessionId, messages: [ { role: 'user',