Skip to content

ResolveModelOptions

Defined in: core/src/capability.ts:176

optional catalog?: Record<string, unknown>;

Defined in: core/src/capability.ts:180

Pre-loaded catalog object (useful for tests or offline execution).


optional catalogUrl?: string;

Defined in: core/src/capability.ts:178

Custom catalog URL. Defaults to https://models.dev/api.json


optional fetchImpl?: (input, init?) => Promise<Response>;

Defined in: core/src/capability.ts:182

Custom fetch implementation (for proxies, custom headers, or tests).

MDN Reference

Parameter Type
input RequestInfo | URL
init? RequestInit

Promise<Response>


optional maxAgeMs?: number;

Defined in: core/src/capability.ts:184

Max cache age in ms. Defaults to 24 hours (86_400_000 ms).