Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It appears that OpenAI errors return a message field containing an ar…
…ray, instead of a string, for example: { "error": { "message": [ "Invalid schema for function 'get_n_day_weather_forecast': In context=('properties', 'format'), array schema missing items" ], "type": "invalid_request_error", "param": null, "code": null } } This causes the JSON deserializer to choke. There doesn't seem to be an official API documentation for error messages. However, since they appear to be only used for user feedback, I'd propose changing their type to be an unspecified `object`.
- Loading branch information
80bde47
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://community.openai.com/t/api-design-doesnt-respect-type-safe-languages/308497