On gateway design

A gateway that forces you to choose between an OpenAI-shaped API and native provider power has already failed. We built Synapse with two lanes so the same OpenAI SDK call keeps Context Caching, responseSchema and thinking config intact on Vertex AI.

Raj Singh

Raj Singh⁠

About

I'm CTO and co-founder of Contingent, and I maintain Synapse, an open-source Rust LLM gateway.

Perspectives

On gateway design
RRaj SinghA gateway that forces you to choose between an OpenAI-shaped API and native provider power has already failed. We built Synapse with two lanes so the same OpenAI SDK call keeps Context Caching, responseSchema and thinking config intact on Vertex AI.
On model routing
RRaj SinghMost teams over-provision their strongest model because they route by endpoint, not by request. I think the right unit of routing is the turn: Jev scores each request for difficulty and reasoning need, and Synapse serves it from the matching tier.
On observability
RRaj SinghSilent fallbacks are worse than no fallbacks. Every leg transition, circuit breaker state and degraded decision in Synapse is exposed in headers, metrics and the ledger so the operator owns the degradation.
On streaming fallback
RRaj SinghStreaming is not a special case. Synapse always streams from the provider and only commits to a leg after the first chunk, so buffered clients keep the full fallback chain and streaming clients get real tokens without spliced models.
On monorepo tooling
RRaj SinghA monorepo's CI should not run every check on every change. We built axonal so the same pull request runs only the tasks the branch can actually affect, in dependency order, with cached outputs restored when nothing changed.
On gateway design
RRaj SinghA gateway that forces you to choose between an OpenAI-shaped API and native provider power has already failed. We built Synapse with two lanes so the same OpenAI SDK call keeps Context Caching, responseSchema and thinking config intact on Vertex AI.
On model routing
RRaj SinghMost teams over-provision their strongest model because they route by endpoint, not by request. I think the right unit of routing is the turn: Jev scores each request for difficulty and reasoning need, and Synapse serves it from the matching tier.
On observability
RRaj SinghSilent fallbacks are worse than no fallbacks. Every leg transition, circuit breaker state and degraded decision in Synapse is exposed in headers, metrics and the ledger so the operator owns the degradation.
On streaming fallback
RRaj SinghStreaming is not a special case. Synapse always streams from the provider and only commits to a leg after the first chunk, so buffered clients keep the full fallback chain and streaming clients get real tokens without spliced models.
On monorepo tooling
RRaj SinghA monorepo's CI should not run every check on every change. We built axonal so the same pull request runs only the tasks the branch can actually affect, in dependency order, with cached outputs restored when nothing changed.

Experiences

  1. Open sourceMaintain an LLM gateway that keeps Vertex AI features

    Generic OpenAI-style proxies drop Gemini's context caching and strict schemas, so we kept a native Vertex lane.

  2. axBuilt a task runner so doc typos skip every Rust check

    Every pull request ran all five crates' tests and five feature builds. ax runs only the checks a change can affect.

Follow Raj for more...

Website

© 2026 Delphi · Terms · Privacy

Raj Singh

Raj Singh⁠

About

I'm CTO and co-founder of Contingent, and I maintain Synapse, an open-source Rust LLM gateway.

Perspectives

On gateway design
RRaj SinghA gateway that forces you to choose between an OpenAI-shaped API and native provider power has already failed. We built Synapse with two lanes so the same OpenAI SDK call keeps Context Caching, responseSchema and thinking config intact on Vertex AI.
On model routing
RRaj SinghMost teams over-provision their strongest model because they route by endpoint, not by request. I think the right unit of routing is the turn: Jev scores each request for difficulty and reasoning need, and Synapse serves it from the matching tier.
On observability
RRaj SinghSilent fallbacks are worse than no fallbacks. Every leg transition, circuit breaker state and degraded decision in Synapse is exposed in headers, metrics and the ledger so the operator owns the degradation.
On streaming fallback
RRaj SinghStreaming is not a special case. Synapse always streams from the provider and only commits to a leg after the first chunk, so buffered clients keep the full fallback chain and streaming clients get real tokens without spliced models.
On monorepo tooling
RRaj SinghA monorepo's CI should not run every check on every change. We built axonal so the same pull request runs only the tasks the branch can actually affect, in dependency order, with cached outputs restored when nothing changed.
On gateway design
RRaj SinghA gateway that forces you to choose between an OpenAI-shaped API and native provider power has already failed. We built Synapse with two lanes so the same OpenAI SDK call keeps Context Caching, responseSchema and thinking config intact on Vertex AI.
On model routing
RRaj SinghMost teams over-provision their strongest model because they route by endpoint, not by request. I think the right unit of routing is the turn: Jev scores each request for difficulty and reasoning need, and Synapse serves it from the matching tier.
On observability
RRaj SinghSilent fallbacks are worse than no fallbacks. Every leg transition, circuit breaker state and degraded decision in Synapse is exposed in headers, metrics and the ledger so the operator owns the degradation.
On streaming fallback
RRaj SinghStreaming is not a special case. Synapse always streams from the provider and only commits to a leg after the first chunk, so buffered clients keep the full fallback chain and streaming clients get real tokens without spliced models.
On monorepo tooling
RRaj SinghA monorepo's CI should not run every check on every change. We built axonal so the same pull request runs only the tasks the branch can actually affect, in dependency order, with cached outputs restored when nothing changed.

Experiences

  1. Open sourceMaintain an LLM gateway that keeps Vertex AI features

    Generic OpenAI-style proxies drop Gemini's context caching and strict schemas, so we kept a native Vertex lane.

  2. axBuilt a task runner so doc typos skip every Rust check

    Every pull request ran all five crates' tests and five feature builds. ax runs only the checks a change can affect.

Follow Raj for more...

Website

© 2026 Delphi · Terms · Privacy

By using this service, you agree to the Terms of Service and Privacy Policy.