Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Support stream_options attribute in request and usage stats in streaming ChatCompletionChunk #502

Open
usrivastava92 opened this issue May 17, 2024 · 0 comments · May be fixed by #503
Open

Comments

@usrivastava92
Copy link

usrivastava92 commented May 17, 2024

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 added a commit to usrivastava92/openai-java that referenced this issue May 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant