Minor fixes on OpenAiBasedProviderClientBase
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3543112. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
Related to !853
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Since OpenAiBasedProviderClientBase does moderation normalization, but it has a OpenAI moderation id (that is old). Instead we should remove this and force a moderation model here.</p>
<p>Also the tokens should only be set if they exist under chat model.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Add check if the model is set.<br>
Remove the ternary operator.<br>
Only set the tokens under chat model.</p>
issue