alexrudall / ruby-openai

OpenAI API + Ruby! 🤖❤️ NEW: Assistant Vector Stores
MIT License
2.61k stars 302 forks source link

Update README.md with usage info while streaming #499

Closed codenamev closed 4 days ago

codenamev commented 1 week ago

OpenAI introduced a new chat parameter that allows you to get usage information at the end of a streamed response. This updates the README with further instructions on how to accomplish this and the format of the response.

All Submissions:

alexrudall commented 4 days ago

@codenamev -- amazing, I actually need this today, thank you!