openai-java
openai-java copied to clipboard
Support stream_options attribute in request and usage stats in streaming ChatCompletionChunk
OpenAI now supports stream_options as an input attribute in chat completions API which allows consumers to request token usage stats in streaming requests.
Can we please add support for the same? Happy to contribute :)
Docs: https://platform.openai.com/docs/api-reference/chat/create