Routing

llmisvc_model_provider_resolver

Rewrites publisher-ID body model values to the short model name for LLMISvc / KServe routing; the routing header is left unchanged.

Praxis AI Development (bcdcfdbcf963) 2 min read

Switching projects opens that project’s default documentation release.

Versions marked “overview” do not contain this page. Selecting one opens that version’s documentation overview.

On this page

Rewrites publisher-ID body model values to the short model name for LLMISvc / KServe routing; the routing header is left unchanged.

Configuration Notes

Reads the model name from the configured request header (default X-Model, typically set by an earlier model_to_header). When that value is a publisher ID (publishers/.../models/<name>), rewrite the body "model" field to <name> only. The routing header is never modified – KServe routes on the publisher ID.

If the header is absent/empty, or the body has no "model" field, this filter is a no-op (it does not invent a body "model").

Does not resolve ExternalModel / ExternalProvider CRDs, perform weighted provider selection, rewrite Host, or inject credentials.

Request buffering inherits the pipeline’s max_request_bytes and max_buffer_bytes. Optional max_body_bytes is a hard processing limit: bodies larger than it return HTTP 413 before parsing, independently of other filters’ buffer declarations. The limit applies to the body received by this filter, before its own rewriting or enrichment.

Omitting the limit removes the former implicit 10 MiB filter cap; pipeline limits still apply. Existing positive values remain valid and are now enforced even when another filter requests a larger shared buffer. Zero remains invalid; YAML null behaves like omission.

Configuration

FieldTypeRequiredDescription
headerstringnoRequest header that carries the publisher ID for KServe routing. Defaults to X-Model (same as model_to_header).
max_body_bytesintegernoOptional hard request-body processing limit in bytes. Omit to inherit pipeline max_request_bytes and max_buffer_bytes; oversize bodies return HTTP 413 before parsing.

Example

filter: llmisvc_model_provider_resolver
header: X-Model   # optional, defaults to X-Model