BedrockException sometimes when running agents
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3559926. --> Reported by: [ultimike](https://www.drupal.org/user/51132) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Sometimes, when using the <code>amazee.ai AI chat</code> LLM, I get the following error:</p> <pre>Error: Error invoking model response: litellm.BadRequestError: BedrockException - {"message":"The text field in the ContentBlock object at messages.7.content.1 is blank. Add text to the text field, and try again."}. Received Model Group=chat<br>Available Model Group Fallbacks=None</pre><p>I am normally testing agents via the <em>AI Agent Explorer</em> when I get this error. </p> <p>Not sure what this means, but I suspect it might be related to rate limits?</p> <p>-mike</p>
issue