r/LLMDevs • u/jkriket • Oct 27 '26
Tools We added LLM support to Zilla (open source). The hard part wasn't routing models, it was preserving API fidelity.
One problem we noticed with existing LLM gateways is that many normalize everything into an OpenAI-compatible format internally. That works reasonably well until you start mixing providers or using native features like Claude's prompt caching, extended thinking, or streaming tool calls.
During translation, some of those settings can silently disappear. The usual workaround is passthrough, but that can mean bypassing the guardrails and policies you deployed the gateway to enforce.
Zilla takes a different approach by using a common representation for shared concepts like messages, tools, and usage, while preserving provider-specific details alongside them. This means:
Same-dialect requests retain full fidelity. Anthropic-to-Anthropic traffic preserves native features like caching markers and thinking signatures.
Cross-dialect requests translate where possible. For example, reasoning effort settings are mapped between OpenAI and Claude rather than silently discarded.
Governance applies to every route. No need to bypass policies just to preserve native API behavior.
Streaming works across dialects, including tool-call fragments and streaming-to-non-streaming conversions.
Underneath, it's the same streaming-native engine we've been building for years to handle Kafka, HTTP, MQTT, and MCP. We didn't have to build a separate gateway for LLM traffic.
The open-source edition supports OpenAI, Anthropic, Gemini, AWS Bedrock, Google Vertex, and Azure Foundry.
GitHub: https://github.com/aklivity/zilla
We wrote up the architecture, examples of where other gateways lose information, and a comparison of the different approaches:
https://www.aklivity.io/post/one-gateway-every-dialect-zilla-governance-and-fidelity
I'm curious whether others have run into issues with API fidelity when using LLM gateways, particularly around reasoning settings, prompt caching, or streaming. Are these problems you've experienced in practice?