Skip to content

Feature Request: return dollar amount for OpenAI request response #157

@dhruv-anand-aintech

Description

@dhruv-anand-aintech

the openai library returns the number of tokens with each response.
However, the pricing keeps changing. Is there a way you can add the dollar amount to that response, or a function for the same in tiktoken?

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