Skip to content

[enhancement]: Add a "token counter" to the prompt section to show how many tokens are about to be used #9247

@plz12345

Description

@plz12345

Is there an existing issue for this?

  • I have searched the existing issues

Contact Details

No response

What should this feature add?

I'd like a token counter/word counter on the prompt input box. It should show approximately how many tokens would be sent to the model on generation.

Why? It's fairly known that many models lose coherence/adherence past a certain token count. By giving the user some helpful guardrails on the prompt, they will get better results.

Alternatives

Having to paste it into another tool is annoying, but workable.

Additional Content

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions