You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Introduced the `StreamOptions` class in `OpenAIBaseModel` with an optional `include_usage` attribute.
- Added `stream_options` attribute to the `ChatCompletionRequest` class, defaulting to `None`.
🚀 The feature, motivation and pitch
According to openAI doc: https://platform.openai.com/docs/api-reference/chat/create#chat-create-stream_options. The API provide the stream_options which can get token usage info for stream request.
Alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: