Merge pull request #13898 from ArtemDzhereleiko/AD/hot-fix/ai-rule-node

Fixed response format issue for AI rule node
This commit is contained in:
Viacheslav Klimov 2025-08-20 15:16:12 +03:00 committed by GitHub
commit ed4ceedd43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {