Skip to content

Support other encodings, like cl100k_base #5

@leafduo

Description

@leafduo

I'm making an application which calls ChatGPT API in Go, and I need to estimate how many tokens I'm using. ChatGPT uses cl100k_base encoding, while go-gpt-3-encoder only supports (I think) p50k_base.

Is there any plan to support cl100k_base?

I don't really know how BPE works, but according to this, different encodings have different vocabulary, pat regex and special tokens.

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