Skip to content

Proper count tokens for conversation / message level #1033

Closed

Description

@vectorkovacspeter

Contact Details

kovacs.peter@vector.hu

What is your question?

How can I properly get the input and output token numbers for a conversation or a message?

In the Mongo database, thez messages.tokenCount value is null for the non-user messages, am I search it in the wrong place?

Is there a detailed documentation available for the database schama, and its content?

More Details

I try to sum the tokens used by a specified conversation or a specified message stored in the chat database (I use mongo).

What is the main subject of your question?

Other

Screenshots

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. locked and limited conversation to collaborators on Oct 10, 2023
  2. converted this issue into a discussion #1034 on Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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