OpenAI API + Ruby! 🤖❤️ Now with GPT4o 🚀🚀🚀
OpenAI::Client.get
for some reason, as they are now instance methods. Normal usage of the gem should be unaffected, just you can make new clients and they'll keep their own config if you want, overriding the global config.client.translate
to client.audio.translate
and client.transcribe
to client.audio.transcribe
.JSON.parse(response.body)["key"]
and response.parsed_response["key"]
to just response["key"]
.