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

Support stream_options attribute in request and usage stats in streaming ChatCompletionChunk

Open usrivastava92 opened this issue 1 year ago • 0 comments

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

Screenshot 2024-05-17 at 7 34 54 PM Screenshot 2024-05-17 at 7 34 33 PM

usrivastava92 avatar May 17 '24 14:05 usrivastava92