Headers
Malibu-specific request and response headers.All headers are OpenAI-compatible plus a small set of Malibu-specific
X-Malibu-* headers for routing and receipt handling.
Request headers
Additional headers OpenAI clients set (
OpenAI-Version, User-Agent, etc.) are accepted but not required.
Response headers
Reading response headers from openai-python
The high-level client hides response headers. Usewith_raw_response to get them:
Streaming
For SSE responses,X-Malibu-Provider is on the initial HTTP response. X-Malibu-Receipt is emitted on the final trailing chunk or via HTTP trailers, depending on client support. Most SDKs surface it as raw.headers after the stream completes.
HMAC of X-Malibu-Conversation
The gateway HMACs the raw X-Malibu-Conversation value with the buyer’s account_id before forwarding to the coordinator. This means:
thread-42from account A andthread-42from account B route to different sticky partitions.- The coordinator never sees the raw buyer value.
- Sticky affinity is deterministic per account — the same tag from the same account always maps to the same partition.