Problem
Switchyard supports OpenAI Chat, OpenAI Responses, and Anthropic Messages wire formats, but it cannot decode or encode native Gemini generateContent payloads. A caller or backend using the Gemini API must use an OpenAI-compatible adapter instead of routing the native request through Switchyard.
Proposed solution
Add native Gemini generateContent request and response support to switchyard-translation, including focused round-trip and cross-format tests.
Alternatives considered
Use a Gemini OpenAI-compatible endpoint. This works for some deployments, but does not preserve the native Gemini interface.
Scope notes
Keep this issue focused on the protocol and translation codec. Server endpoints, TOML configuration, streaming, and NeMo Relay plugin wiring can be evaluated separately.
Additional context
NeMo Relay added a Gemini generateContent codec in NVIDIA/NeMo-Relay#723. Relay and Switchyard have different codec boundaries, so that implementation is useful prior art rather than code Switchyard can enable directly.
Problem
Switchyard supports OpenAI Chat, OpenAI Responses, and Anthropic Messages wire formats, but it cannot decode or encode native Gemini
generateContentpayloads. A caller or backend using the Gemini API must use an OpenAI-compatible adapter instead of routing the native request through Switchyard.Proposed solution
Add native Gemini
generateContentrequest and response support toswitchyard-translation, including focused round-trip and cross-format tests.Alternatives considered
Use a Gemini OpenAI-compatible endpoint. This works for some deployments, but does not preserve the native Gemini interface.
Scope notes
Keep this issue focused on the protocol and translation codec. Server endpoints, TOML configuration, streaming, and NeMo Relay plugin wiring can be evaluated separately.
Additional context
NeMo Relay added a Gemini
generateContentcodec in NVIDIA/NeMo-Relay#723. Relay and Switchyard have different codec boundaries, so that implementation is useful prior art rather than code Switchyard can enable directly.