Openai_ex - OpenAI API client library

I have published v0.8.0 with the long pending enhancement - systematic error handling for non livebook use cases. Shoutout to everyone who upvoted that issue.

  • Functions now return :ok and :error tuples for explicit error handling.
  • New bang (!) versions of functions that raise exceptions on errors.
  • Error types align with the official OpenAI Python library

The downside is that this requires changes to most client code.

I am also going to remove references to Livebook from the description, since it’s giving people the impression that the library can’t be used with (for example) Phoenix.

1 Like