Skip to content

DiscoveryKind

DiscoveryKind = "openai" | "anthropic" | "google" | "none"

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/providers/modelDiscovery.ts:66

How a provider’s live model catalog can be queried.

  • openai — an OpenAI-compatible GET /v1/models ({ data: [{ id }] }). Covers openai, openrouter, groq, deepseek, xai and ollama (local).
  • anthropic — Anthropic’s native GET /v1/models ({ data: [{ type, id, display_name }] }) with x-api-key auth.
  • google — Google AI Studio’s native ListModels (GET /v1beta/models{ models: [{ name, supportedGenerationMethods }] }) with x-goog-api-key auth. Chat capability is decided by a data-driven supportedGenerationMethods check rather than a name regex (google-genai).
  • none — no cheap live endpoint; stay on the curated list (vertexai, which authenticates via gcloud ADC rather than an API key).