Skip to content

Create a /detokenize example server endpoint #2801

Closed
@BruceMacD

Description

@BruceMacD

Expected Behavior

The example server has a /tokenize endpoint which converts strings to tokens. I am storing the response from this endpoint to calculate the token length of an input (for context window reasons) so I'd also like a /detokenize to convert this back into a string for prompting reasons.

Current Behavior

No /detokenize endpoint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions