Interface: IModelRegistryConfig
Defined in: internal/model-registry/types.ts:2
Configuration of the ModelRegistry. Lands in IAIGatewayConfig.modelRegistry.
Properties
cacheTtlMs?
optionalcacheTtlMs?:number
Defined in: internal/model-registry/types.ts:16
How long the catalog stays cached in memory, in milliseconds.
Every call reads
caps; the repository is read once per TTL, not once per call.
An admin write on this instance drops the cache at once; another instance sees it after its TTL.
Example
5_000 - an admin screen that wants its own edits visible fast on every instance
Default
60_000
repository
repository:
IModelRegistryRepository
Defined in: internal/model-registry/types.ts:4
Persistence of the model entries: the host's adapter (in memory for the tests and the first run, a database in production).