library · inferred from evidence
tiktoken
A library used for counting tokens before API calls.
- This model's maximum context length is 8192 tokens, however you requested 9175 tokens
Diagnoses the Azure OpenAI 400 error where a request exceeds the model's token limit, common when embedding large documents for search ingestion. Use when an agent sees this during bulk embedding or chat calls on Azure OpenAI. Covers token-