Tokens not getting cached in azure OpenAI.

Sharad Roy 0 Reputation points
2025-02-27T07:16:14.89+00:00

When using gpt-4o model in azure OpenAI, cached tokesn count in usage is always coming as zero. The same prompt and history used directly in the openai API gives cached tokens correctly. Do we need to enable any settings to enable caching? I am suing the Openai nodejs sdk for both azure and direct openai.

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,732 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.