Undefined method: getTokenUsage() warning in AI Translation
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3555956. -->
Reported by: [anmolgoyal74](https://www.drupal.org/user/3560428)
Related to !996
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>While translating content, I am getting this warning and the content is not being getting save after translation since this method is not present for TranslateTextOutput. </p>
<p>Call to undefined method Drupal\ai\OperationType\TranslateText\TranslateTextOutput::getTokenUsage()</p>
<h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4>
<p>Please provide information like AI modules enabled, which AI provider, browser, etc.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3>Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)</h3>
issue