> This page is for version v2 API (default).
> For other versions, use one of these documentation indexes:
> - v2 API (default): https://docs.cohere.com/v2/llms.txt
> - v1 API: https://docs.cohere.com/v1/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.cohere.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.cohere.com/_mcp/server.

# Cohere Python SDK v5.2.0 release

> Stay up to date with our Python SDK update, including local tokenizer defaults and new required fields.

We've released an additional update for our Python SDK! Here are the highlights.

* The tokenize and detokenize functions in the Python SDK now default to using a *local* tokenizer.
* When using the local tokenizer, the response will not include `token_strings`, but users can revert to using the hosted tokenizer by specifying `offline=False`.
* Also, `model` will now be a required field.
* For more information, see the guide for [tokens and tokenizers](/docs/tokens-and-tokenizers).

\