ruby-openai icon indicating copy to clipboard operation
ruby-openai copied to clipboard

Fix files content endpoint

Open willywg opened this issue 9 months ago • 3 comments

This PR addresses issues #421 and #450.

It fixes the client.files.content API endpoint. The current implementation requires parsing the response body to JSON. However, some responses (like files generated by the Assistant API) need to be handled as pure response body content, such as a PNG file.

All Submissions:

  • [x] Have you followed the guidelines in our Contributing document?
  • [x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • [x] Have you added an explanation of what your changes do and why you'd like us to include them?

willywg avatar May 08 '24 16:05 willywg