Browse Source

UI: Fixed responseFormat for AI rule node

pull/13898/head
ArtemDzhereleiko 1 year ago
parent
commit
d992e5f01d
  1. 7
      ui-ngx/src/app/modules/home/components/rule-node/external/ai-config.component.ts

7
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) { if (!this.aiConfigForm.get('systemPrompt').value) {
delete configuration.systemPrompt; delete config.systemPrompt;
} }
return deepTrim(configuration); return deepTrim(config);
} }
onEntityChange($event: AiModel) { onEntityChange($event: AiModel) {

Loading…
Cancel
Save