Skip to Content
These docs describe donkey-kit v0.3.0. Release notes

Offline-verified

Discovery for models

Models are not discovered the way MCP tools are. The governed LLM proxy has no catalog endpoint: GET /models returns 404, because model-based routing only routes requests that carry model in the body. So DDK does not guess a catalog path. These are what is available instead.

You wantUseNotes
A handle for a model id you already knowdonkey.llm.resolve(model_id)A heuristic ModelHandle, built without a network call.
A list of the proxy’s modelsawait donkey.llm.list_models()Not available today. With or without live=True it raises ConfigError, pointing you at resolve() or Exchange.
What an LLM proxy or custom provider declaresdonkey.registry.llm_metadata()Reads the llm-metadata file of an Exchange llm asset; see below.

How the gateway then picks a provider for the model you named is on Routing & fallback, and the version rules for each framework are on Version compatibility.

Reading an LLM asset’s metadata

donkey.registry.llm_metadata() is Live. It reads the llm-metadata file of an llm asset version, an LLM proxy or a custom LLM provider, and returns what it declares:

meta = await donkey.registry.llm_metadata("<group-id>/my-llm-provider/1.0.0") if meta is not None: print(meta.platform, meta.input_format, meta.models)

LlmMetadata has platform, name, input_format, models (the model IDs) and capabilities (the file’s object as published). The read is tolerant: it ignores fields it does not know, and a field the file leaves out or sets to the wrong type comes back as None or empty, never a guess. A DDK LLM proxy’s file sets only platform. The read returns None for a version with no llm-metadata file, and raises RegistryError when Exchange has no such version. It needs read:exchange, and the file download carries no credential.

Last updated on