diff --git a/articles/api-management/azure-openai-token-limit-policy.md b/articles/api-management/azure-openai-token-limit-policy.md index 58bce798ff52c..71b01b654dfaa 100644 --- a/articles/api-management/azure-openai-token-limit-policy.md +++ b/articles/api-management/azure-openai-token-limit-policy.md @@ -54,7 +54,7 @@ For more information, see [Azure OpenAI Service models](../ai-services/openai/co | -------------- | ----------------------------------------------------------------------------------------------------- | -------- | ------- | | counter-key | The key to use for the token limit policy. For each key value, a single counter is used for all scopes at which the policy is configured. Policy expressions are allowed.| Yes | N/A | | tokens-per-minute | The maximum number of tokens consumed by prompt and completion per minute. | Yes | N/A | -| estimate-prompt-tokens | Boolean value that determines whether to estimate the number of tokens required for a prompt:
- `true`: estimate the number of tokens based on prompt schema in API; may reduce performance.
- `false`: don't estimate prompt tokens. | Yes | N/A | +| estimate-prompt-tokens | Boolean value that determines whether to estimate the number of tokens required for a prompt:
- `true`: estimate the number of tokens based on prompt schema in API; may reduce performance.
- `false`: don't estimate prompt tokens.

When set to `false`, the remaining tokens per `counter-key` are calculated using the actual token usage from the response of the model. This could result in prompts being sent to the model that exceed the token limit. In such case, this will be detected in the response, and all succeeding requests will be blocked by the policy until the token limit frees up again. | Yes | N/A | | retry-after-header-name | The name of a custom response header whose value is the recommended retry interval in seconds after the specified `tokens-per-minute` is exceeded. Policy expressions aren't allowed. | No | `Retry-After` | | retry-after-variable-name | The name of a variable that stores the recommended retry interval in seconds after the specified `tokens-per-minute` is exceeded. Policy expressions aren't allowed. | No | N/A | | remaining-tokens-header-name | The name of a response header whose value after each policy execution is the number of remaining tokens allowed for the time interval. Policy expressions aren't allowed.| No | N/A |