Embeddings Generation Explorer got error after select provider
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3543298. -->
Reported by: [lawxen](https://www.drupal.org/user/2936003)
Related to !919
>>>
<p>Reproduced steps:<br>
1. open /admin/config/ai/explorers/embeddings_generator<br>
2. Select a ai provider<br>
Error:<br>
<code>Exception: Serialization of 'Closure' is not allowed in serialize() (line 14 of /var/www/html/web/core/lib/Drupal/Component/Serialization/PhpSerialize.php).</code></p>
issue