Skip to content

vanity-gateway: serve LLM Gateway OpenAI-compatible routes on a configured host #1021

Description

@Max-NV

The Vanity Gateway proxies every route to a single upstream, the NVCF invocation API named by NVCF_API_ENDPOINT. There is no way to point a hostname it serves at the LLM Gateway instead, so operators running both services cannot expose the LLM Gateway OpenAI-compatible endpoints through the gateway.

Proposal: a v2config.llmGateway section mapping hosts to the LLM Gateway, with the endpoint supplied by a new LLM_GATEWAY_ENDPOINT variable. Each configured host would serve the routes the LLM Gateway registers (POST /v1/chat/completions, POST /v1/responses, POST /v1/embeddings) and proxy them unchanged, since the LLM Gateway resolves the target function from the model field the client already sends.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions