- Issue created by @marcus_johansson
- 🇩🇪Germany marcus_johansson
Update: That client is most likely not supported anymore, so we should find another or build our own.
The current way of using the OpenAI php library for the Mistral API is not great. It only follows the standards in best case scenario and not when its failing.
This leads to all the possible exceptions or even error messages being lost and in the end the end user only sees a AiBadRequestException with some code failure, because its not following standards.
In the actual API response there is a human readable error - "No money left", "Rate limit reached" etc, but this is not passed through to the end user.
* Build our own Guzzle Client for Mistral that can forward errors to an exception.
* (or) try this out: https://github.com/HelgeSverre/mistral
Active
1.0
AI Core module
Update: That client is most likely not supported anymore, so we should find another or build our own.