DiscoveryConfig
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/providers/modelDiscovery.ts:71
Per-provider live-discovery adapter. Bundled on the ProviderDescriptor so discoverModels can be fully data-driven.
Properties
Section titled “Properties”authHeader?
Section titled “authHeader?”
optionalauthHeader?: (key) =>Record<string,string>
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/providers/modelDiscovery.ts:79
Build the auth headers from the resolved API key (may be empty for ollama).
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Record<string, string>
filter?
Section titled “filter?”
optionalfilter?: (id) =>boolean
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/providers/modelDiscovery.ts:85
Keep only chat-capable model ids. Live endpoints return embeddings, TTS, whisper, image, guard, etc. alongside chat models; this prunes them. When omitted, all returned ids are kept.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
kind:
DiscoveryKind
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/providers/modelDiscovery.ts:72
modelsUrl?
Section titled “modelsUrl?”
optionalmodelsUrl?: (host?) =>string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/providers/modelDiscovery.ts:77
The models endpoint to fetch. host is supplied only for ollama (the
resolved daemon host); cloud providers ignore it and return a fixed URL.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string