adamrushy / OpenAISwift

This is a wrapper library around the ChatGPT and OpenAI HTTP API
MIT License
1.62k stars 246 forks source link

Adding chat-specific error handling #43

Closed bogdanf closed 1 year ago

bogdanf commented 1 year ago

Added a case to the existing OpenAIError to handle errors returned by the new 'chat' model.

adamrushy commented 1 year ago

This looks good overall @bogdanf please may you fix the conflicts? 🙏🏼

bogdanf commented 1 year ago

Done !

julianschiavo commented 1 year ago

I've been seeing frequent errors (not because of this framework—but because of OpenAI's terrible uptime!) which I suspect this might fix (I.e. handle better). Would love to see this get merged soon, thank you @bogdanf 😄

bogdanf commented 1 year ago

@adamrushy - The conflicts from recent merges are now resolved