AI Chat action fails with "Unknown parameter: 'system_name'" when using "Specific configuration for the model"
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3573445. -->
Reported by: [michaelb](https://www.drupal.org/user/2309046)
>>>
<p>Hello,</p>
<p>I am trying to use an AI task within ECA using the ai_integration_eca module.<br>
When triggering an "AI Chat" action that includes a value in the field "Specific configuration for the model", the execution fails with the following error:</p>
<p><strong>Error invoking model response: Unknown parameter: 'system_name'</strong></p>
<p>I followed the example provided in the field description and simply copied the configuration:</p>
<p>system_name: system<br>
system_prompt: you are a helpful assistant</p>
<p>Without this specific configuration, the ECA task runs correctly. The error only appears as soon as this configuration is added.</p>
<p>I am not sure whether this is a bug, or a misuse on my side, so I am opening this issue mainly for clarification.</p>
<p>Steps to reproduce :</p>
<p>1. Create or edit an ECA model.<br>
2. Add an action "AI Chat" (ai_integration_eca).<br>
3. Fill the field "Specific configuration for the model" with:</p>
<p>system_name: system<br>
system_prompt: you are a helpful assistant</p>
<p>4. Trigger the ECA process.<br>
5. The execution throws the error:</p>
<p>Error invoking model response: Unknown parameter: 'system_name'</p>
<p><strong>Additional question</strong></p>
<p>Are Drupal tokens supported inside:</p>
<p>* the prompt field?<br>
* the "Specific configuration for the model" field?</p>
<p>Regards</p>
issue