Same problem with MISTRAL AI : mistral-large-latest model
When I go to translate a content in the translate tab, then click on Translate with mistral-large-latest
#0 /home/ism2/public_html/drupal/vendor/openai-php/client/src/Responses/Chat/CreateResponse.php(50): array_map()
#1 /home/ism2/public_html/drupal/vendor/openai-php/client/src/Resources/Chat.php(35): OpenAI\Responses\Chat\CreateResponse::from()
#2 /home/ism2/public_html/drupal/web/modules/ai_provider_mistral/src/Plugin/AiProvider/MistralProvider.php(211): OpenAI\Resources\Chat->create()
#3 [internal function]: Drupal\ai_provider_mistral\Plugin\AiProvider\MistralProvider->chat()
#4 /home/ism2/public_html/drupal/web/modules/contrib/ai/src/Plugin/ProviderProxy.php(155): ReflectionMethod->invokeArgs()
#5 /home/ism2/public_html/drupal/web/modules/contrib/ai/src/Plugin/ProviderProxy.php(81): Drupal\ai\Plugin\ProviderProxy->wrapperCall()
#6 /home/ism2/public_html/drupal/web/modules/contrib/ai/modules/ai_translate/src/Controller/AiTranslateController.php(183): Drupal\ai\Plugin\ProviderProxy->__call()
#7 /home/ism2/public_html/drupal/web/modules/contrib/ai/modules/ai_translate/src/Controller/AiTranslateController.php(261): Drupal\ai_translate\Controller\AiTranslateController->translateContent()
#8 /home/ism2/public_html/drupal/web/core/includes/batch.inc(296): Drupal\ai_translate\Controller\AiTranslateController->translateSingleText()
#9 /home/ism2/public_html/drupal/web/core/includes/batch.inc(138): _batch_process()
#10 /home/ism2/public_html/drupal/web/core/includes/batch.inc(94): _batch_do()
#11 /home/ism2/public_html/drupal/web/core/modules/system/src/Controller/BatchController.php(52): _batch_page()
#12 [internal function]: Drupal\system\Controller\BatchController->batchPage()
#13 /home/ism2/public_html/drupal/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#14 /home/ism2/public_html/drupal/web/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#15 /home/ism2/public_html/drupal/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#16 /home/ism2/public_html/drupal/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#17 /home/ism2/public_html/drupal/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#18 /home/ism2/public_html/drupal/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#19 /home/ism2/public_html/drupal/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#20 /home/ism2/public_html/drupal/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#21 /home/ism2/public_html/drupal/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#22 /home/ism2/public_html/drupal/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#23 /home/ism2/public_html/drupal/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#24 /home/ism2/public_html/drupal/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#25 /home/ism2/public_html/drupal/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#26 /home/ism2/public_html/drupal/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#27 /home/ism2/public_html/drupal/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#28 /home/ism2/public_html/drupal/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#29 /home/ism2/public_html/drupal/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#30 /home/ism2/public_html/drupal/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#31 {main}
nicolasgoudard → created an issue.
nicolasgoudard → created an issue.