Class AzureOpenAiCodec

java.lang.Object
org.mockserver.llm.codec.AzureOpenAiCodec
All Implemented Interfaces:
ProviderCodec

public class AzureOpenAiCodec extends Object implements ProviderCodec
Codec for Azure OpenAI Service (API version 2024-10-21).

Azure OpenAI is wire-compatible with OpenAI Chat Completions — the response and streaming shapes are identical. The differences are in URL paths (/openai/deployments/{deployment}/chat/completions?api-version=...) and authentication headers (api-key instead of Authorization: Bearer).

This codec delegates all encoding and decoding to OpenAiChatCompletionsCodec, overriding only provider() and apiVersion().