Skip to content

Conversation

@magkue
Copy link

@magkue magkue commented Nov 21, 2025

Add GPT-5.1 Model Support

Fixes Add GPT-5.1 with the o200k_base encoding in tiktoken/model.py #464

Changes

  • Added GPT-5.1 model mapping: Maps gpt-5.1 to o200k_base encoding in MODEL_TO_ENCODING and MODEL_PREFIX_TO_ENCODING

Impact

Enables tiktoken to properly tokenize text for GPT-5.1 model using o200k_base encoding as requested in #464

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant