Skip to content

MatchModelEntry

Structure Class

MatchModelEntry dataclass

Bases: _SerdeShape

A model ID or pattern to match against the requested model, and the operator to use for the comparison.

Attributes

operator class-attribute instance-attribute
operator: str = ...

The operator to use when comparing the requested model to the value:

  • StringEquals -- Requires an exact match.

  • StringLike -- Supports wildcard patterns using * and ?. This is the default.

value instance-attribute
value: str

The model ID or pattern to match. With the StringLike operator, you can use * and ? as wildcards, for example anthropic.claude-*.