apply_filters( 'classifai_azure_openai_embeddings_max_tokens', $model ) → {int}
Filter the max number of tokens.
Useful if you want to change to a different model that uses a different number of tokens, or be more strict on the amount of tokens that can be used.
Parameters:
Name | Type | Description |
---|---|---|
$model |
int | The default maximum tokens. |
- Since:
- 3.1.0
- Source:
Returns:
The maximum tokens.
- Type
- int