Issue of APIM's azure-openai-emit-token-metric policy on gpt4o stream

김세형 85 Reputation points
2024-07-11T14:29:07.08+00:00

Key Point

'azure-openai-emit-token-metric' policy on GPT4o stream.

Situation

I use gpt4o stream and need token usage metrics.

Problem

I received a response that Azure doesn't have plan to provided 'stream_options: {"include_usage": true}`'.

So, I tried to use 'azure-openai-emit-token-metric' policy of APIM for estimated token usage, But, estimated token usage is not measured when using gpt4o stream.### Required Action

Action

It hasn't been long since GA of 'azure-openai-emit-token-metric' policy.

So, if this is known issue, Could you tell me when it will be resolved?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,060 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,867 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.