Skip to content

export 'Usage' class as apart of openai.types #1135

Closed
@lilyydu

Description

@lilyydu

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

  • This is a feature request for the Python library

Describe the feature or improvement you're requesting

Hi there,

I'm using the library and writing tests to mock CreateEmbeddingResponse. To mock the class, I'm configuring the properties, including the usage parameter. I'd like to instantiate a 'Usage' object for this. Hence, requesting it to be exported with openai.types. Thanks!

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions