Skip to main content

Module usage_azure

Module usage_azure 

Source
Expand description

Azure-specific response detection and usage normalization.

Structs§

AzureUsage
Token usage fields reported by Azure OpenAI responses.

Functions§

content_filter_overhead
Returns tokens attributed to Azure prompt content filtering.
is_azure_response
Returns whether response headers contain an Azure-specific marker.
normalize_azure_model
Normalizes an Azure deployment or model name.
parse_azure_usage
Parses Azure token usage from a response body.