Skip to content

ModelPatternMapping

Defined in: packages/ai.matey.types/src/router.ts:495

Model pattern to backend mapping.

readonly backend: string

Defined in: packages/ai.matey.types/src/router.ts:504

Backend name to route matching models to.


readonly pattern: RegExp

Defined in: packages/ai.matey.types/src/router.ts:499

Regular expression pattern to match model names.


readonly optional priority: number

Defined in: packages/ai.matey.types/src/router.ts:516

Pattern matching priority (higher = checked first).

0

readonly optional targetModel: string

Defined in: packages/ai.matey.types/src/router.ts:510

Optional target model name to use (for translation during fallback). If not specified, original model name is passed through.