Azure api manger buffers the entire SSE stream before forwarding it to clients when the backend is an Azure OpenAI endpoin

Jeffrey Bakker 0 Reputation points
2026-09-02T07:29:05.2+00:00

APIM's internal CacheModelProcessStreamHandlerLegacybuffers the entire SSE stream before forwarding it to clients when the backend is an Azure OpenAI endpoint, despite buffer-request-body="true" buffer-response="false" being explicitly set on forward-request. This defeats streaming and significantly increases TTFT. The "Legacy" suffix suggests a non-buffering implementation exists but is not being used. Even when removing our token limet and llm-emit metric policies we still get this buffering behavior. A month or 2 ago this was not the case.
*User's image

**

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.


Your answer

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