OpenDive / OpenAIKit

Swift Package for OpenAI's API
MIT License
248 stars 46 forks source link

Implement error handling for OpenAI errors #28

Closed MarcoDotIO closed 1 year ago

MarcoDotIO commented 1 year ago

Implement an OpenAI Error struct to handle error responses. This is for the user end to indicate if anything went wrong, and to help with debugging.