Mistral adapter error handling: Improve object validation and error messages for nested content #3784
Open
3 tasks done
Labels
kind:bug
Indicates an unexpected problem or unintended behavior
priority:medium
Indicates medium priority
Before submitting your bug report
Relevant environment info
Description
The Mistral adapter for Codestral (And properly other models as well) is not displaying a proper error.
Instead the not very helpful "Cannot read properties of undefined (reading 'content')" is displayed. IMHO the code should handle deep nested objects more gracefully and e.g. display a JSON stringify of the object if the object nesting is different than expected.
To reproduce
Log output
The text was updated successfully, but these errors were encountered: