Expand description
Catalog models: what a provider serves and how to talk to it.
Mirrors Model and the compat interfaces in packages/ai/src/types.ts in pi
v1.0.0. The same shape is used by the built-in catalog, by models resolved from
models.json and by extension-registered providers.
Structs§
- Anthropic
Messages Compat compatforanthropic-messages.- Classifier
Model - A structured classifier model, usable with
classify()only. Fields follow pi’s catalog order. - Image
Model - An image-generation model, usable with
generateImages()only. Fields follow pi’s catalog order. - Model
- A chat model.
- Open
AiCompletions Compat compatforopenai-completions.- Open
AiResponses Compat compatfor the OpenAI Responses family.- Pricing
- US dollars per million tokens. pi calls this
ModelCost.