Skip to content

Usage next abort or break #1505

@mbfakourii

Description

@mbfakourii

Confirm this is a feature request for the Node library and not the underlying OpenAI API.

  • This is a feature request for the Node library

Describe the feature or improvement you're requesting

In a stream, when you abort or break, there is no way to get the usage up to that point. And this causes challenges in calculating the token amount. I suggest you create a way to solve this issues that will maintain better transparency in the calculation.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions