Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant