dvcrn / ex_openai

Auto-generated Elixir SDK for OpenAI APIs with full typespecs, docs and streaming support
MIT License
71 stars 27 forks source link

fix: handle raw binary (audio) data when processing response body #20

Closed dvcrn closed 3 months ago

dvcrn commented 5 months ago

When creating audio speech (TTS), OpenAI returns binary data. Add a check to see if you leave it as is, or decode JSON if necessary

Taken over from https://github.com/dvcrn/ex_openai/pull/18 Fixes https://github.com/dvcrn/ex_openai/issues/19

dvcrn commented 3 months ago

Released in https://github.com/dvcrn/ex_openai/releases/tag/1.5.1