API errors not showing (OpenaiCLient - not Openai)

Created on 26 June 2024, 5 months ago

Problem/Motivation

Api errors are not caught and throw a strange error:

NOTICE: PHP message: Uncaught PHP Exception TypeError: "array_map(): Argument #2 ($array) must be of type array, null given" at /var/www/html/vendor/openai-php/client/src/Responses/Chat/CreateResponse.php line 49

Steps to reproduce

Wrong api key in Mistral, or no money left on account.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

AI Core module

Created by

🇧🇪Belgium wouters_f Leuven

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024