Description
Part of #536 (per-model routing configuration).
Let function owners persist routing expressions in llmConfig.routingMethod.
The function management API validates syntax only, against the same RFC 8941
profile the router parses: a well-formed expression persists even when its
method, parameter, type, or range is semantically wrong. The router is the
semantic authority and rejects such values at request time.
The value is stored as received apart from leading and trailing spaces: no
lowercasing, underscore folding, or alias mapping. The router already folds
case and underscores and resolves alias spellings when it resolves the
algorithm name, so every spelling accepted today keeps working. Tabs, line
breaks, and other control characters anywhere in the value are rejected.
Expressions keep the existing per-function scope: an update on any version
propagates to all versions.
There is no feature flag and no deploy ordering. In an environment whose
routers do not parse expressions yet, a model configured with parameters is
rejected by the router at request time until the routers upgrade or the owner
reverts to a method-only value.
Definition of Done
Resources
Description
Part of #536 (per-model routing configuration).
Let function owners persist routing expressions in
llmConfig.routingMethod.The function management API validates syntax only, against the same RFC 8941
profile the router parses: a well-formed expression persists even when its
method, parameter, type, or range is semantically wrong. The router is the
semantic authority and rejects such values at request time.
The value is stored as received apart from leading and trailing spaces: no
lowercasing, underscore folding, or alias mapping. The router already folds
case and underscores and resolves alias spellings when it resolves the
algorithm name, so every spelling accepted today keeps working. Tabs, line
breaks, and other control characters anywhere in the value are rejected.
Expressions keep the existing per-function scope: an update on any version
propagates to all versions.
There is no feature flag and no deploy ordering. In an environment whose
routers do not parse expressions yet, a model configured with parameters is
rejected by the router at request time until the routers upgrade or the owner
reverts to a method-only value.
Definition of Done
in JSON model definitions; malformed expressions are rejected with a
message naming the model and the violated rule
trailing spaces
API paths
Resources