Skip to content

[QUERY] How to get amount of token using OpenAI #115

@aBabken

Description

@aBabken

Title

I want to get the total amount of tokens using openai for single task

Description

I got from openai debug

'x-ratelimit-limit-tokens': '30000'
'x-ratelimit-remaining-tokens': '18305'

I heard that its difference is exactly the amount of spent token for request, is that true?

Additional Context

But anyway I want to have an ability to get the total amount of spent token for one task

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions