AI API Explorer outputs a wrong code snippet for structured output
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3546387. -->
Reported by: [jurgenhaas](https://www.drupal.org/user/168924)
Related to !875
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>When I use the API Explorer with a schema for structure output, there is a code snippet being provided to see how such a call can be made in my own module, which I've done for the ai_integration_eca module.</p>
<p>That code snippet has a small issue, that calls <code>setChatStructuredJsonSchema</code> on the provider instead the input.</p>
issue