Skip to content

[feature] Support native Gemini generateContent translation #642

Description

@afourniernv

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions