Correct error in "Chat Call" docs
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3528461. --> Reported by: [jofitz](https://www.drupal.org/user/2617663) Related to !656 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>There are a couple of errors in the code block in the "Example normalized Chat call" section of the "Chat Call" documentation</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>See <a href="https://project.pages.drupalcode.org/ai/developers/call_chat/#example-normalized-chat-call">https://project.pages.drupalcode.org/ai/developers/call_chat/#example-normalized-chat-call</a></p> <div class="codeblock"> <pre><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br>$provider</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setChatSystemRole</span><span style="color: #007700">(</span><span style="color: #DD0000">'You are a really rude assistant that will not great people.'</span><span style="color: #007700">)<br></span><span style="color: #0000BB">?&gt;</span></span></pre></div> <p>and</p> <div class="codeblock"> <pre><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br>$response </span><span style="color: #007700">= </span><span style="color: #0000BB">$provider</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">chat</span><span style="color: #007700">(</span><span style="color: #0000BB">$messages</span><span style="color: #007700">, </span><span style="color: #DD0000">'gpt-4o'</span><span style="color: #007700">, [</span><span style="color: #DD0000">'my-custom-call'</span><span style="color: #007700">]);<br></span><span style="color: #FF8000">/** @var \Drupal\ai\OperationType\Chat\ChatMessage $return_message */<br></span><span style="color: #0000BB">$return_message</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getNormalized</span><span style="color: #007700">();<br>echo </span><span style="color: #0000BB">$return_message</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getText</span><span style="color: #007700">();<br></span><span style="color: #0000BB">?&gt;</span></span></pre></div> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>The first snippet above is missing a semi-colon (minor, but may as well fix while I'm here).</p> <p>The third line of the second snippet above should be:</p> <div class="codeblock"> <pre><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br>$return_message </span><span style="color: #007700">= </span><span style="color: #0000BB">$response</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getNormalized</span><span style="color: #007700">();<br></span><span style="color: #0000BB">?&gt;</span></span></pre></div> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>Make the correction</p>
issue