Skip to content

Add example to count tokens for structured responses #2102

@jsh9

Description

@jsh9

In https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb, there are examples of counting tokens for regular messages and tool calls, but there isn't an example for structured responses.

Is it possible to add an example for it?

Thanks!

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