AI Gateway: Tracking Issue: No Tokens, No Analytics for Azure OpenAI

Additional information

I don’t know/other

What is the issue you’re encountering

AI Gateway: Tracking Issue: No Tokens, No Analytics for Azure OpenAI

What steps have you taken to resolve the issue?

Simple requests are getting tracked fine like
{“messages”:[{“content”:“Hello”,“role”:“user”}]}

What are the steps to reproduce the issue?

My Request is like this

{“max_tokens”:800,“messages”:[{“content”:“You are an AI bot”,“role”:“assistant”},{“content”:“2878”,“role”:“user”}],“model”:“gpt-4o”,“stream”:true,“temperature”:0.7,“top_p”:0.95,“user”:“123456”}

Screenshot of the error

Found the issue, when I remove “stream”:true its working fine.

But, I need “stream”:true, now how to make this work?