ResolveModelOptions
Defined in: core/src/capability.ts:176
Properties
Section titled “Properties”catalog?
Section titled “catalog?”optional catalog?: Record<string, unknown>;Defined in: core/src/capability.ts:180
Pre-loaded catalog object (useful for tests or offline execution).
catalogUrl?
Section titled “catalogUrl?”optional catalogUrl?: string;Defined in: core/src/capability.ts:178
Custom catalog URL. Defaults to https://models.dev/api.json
fetchImpl?
Section titled “fetchImpl?”optional fetchImpl?: (input, init?) => Promise<Response>;Defined in: core/src/capability.ts:182
Custom fetch implementation (for proxies, custom headers, or tests).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
RequestInfo | URL |
init? |
RequestInit |
Returns
Section titled “Returns”Promise<Response>
maxAgeMs?
Section titled “maxAgeMs?”optional maxAgeMs?: number;Defined in: core/src/capability.ts:184
Max cache age in ms. Defaults to 24 hours (86_400_000 ms).