From d992e5f01dbe4b761b25ebf3203b2d3d1901679d Mon Sep 17 00:00:00 2001 From: ArtemDzhereleiko Date: Wed, 20 Aug 2025 14:36:13 +0300 Subject: [PATCH] UI: Fixed responseFormat for AI rule node --- .../components/rule-node/external/ai-config.component.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/rule-node/external/ai-config.component.ts b/ui-ngx/src/app/modules/home/components/rule-node/external/ai-config.component.ts index 26d2ed009e..4989325801 100644 --- a/ui-ngx/src/app/modules/home/components/rule-node/external/ai-config.component.ts +++ b/ui-ngx/src/app/modules/home/components/rule-node/external/ai-config.component.ts @@ -74,11 +74,12 @@ export class AiConfigComponent extends RuleNodeConfigurationComponent { } } - protected prepareOutputConfig(configuration: RuleNodeConfiguration): RuleNodeConfiguration { + protected prepareOutputConfig(): RuleNodeConfiguration { + const config = this.configForm().getRawValue(); if (!this.aiConfigForm.get('systemPrompt').value) { - delete configuration.systemPrompt; + delete config.systemPrompt; } - return deepTrim(configuration); + return deepTrim(config); } onEntityChange($event: AiModel) {