Skip to content

token counter #1

@roworu

Description

@roworu

need to implement following:

  1. save token usage to DB in such format {token_count: N, llm_provider: "name", llm_model: "name", date: "date"}
  2. add endpoint, that will calculate token usage for specified date, or range of dates
    2.1) possibly, if llm_provider==openai, we could, based on amount of tokens, calculate $ spent per date

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions