ModelInfo
Information about a model available from a provider. Used by provider-level model discovery to report which models are available and their capabilities.
Not all providers return all fields — implementations SHOULD populate as many fields as the provider’s API supports and MAY enrich sparse results from a built-in lookup table of known models.
Class Diagram
Section titled “Class Diagram”---
title: ModelInfo
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class ModelInfo {
+string id
+string displayName
+string ownedBy
+int32 contextWindow
+string[] inputModalities
+string[] outputModalities
+dictionary additionalProperties
}
Yaml Example
Section titled “Yaml Example”id: gpt-4odisplayName: GPT-4oownedBy: openaicontextWindow: 128000inputModalities: - text - imageoutputModalities: - textadditionalProperties: supportsStreaming: trueProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| id | string | The model identifier (e.g., ‘gpt-4o’, ‘claude-3-opus’) |
| displayName | string | Human-readable display name |
| ownedBy | string | The organization or entity that owns the model |
| contextWindow | int32 | Maximum context window size in tokens |
| inputModalities | string[] | Input modalities the model accepts (e.g., ‘text’, ‘image’, ‘audio’) |
| outputModalities | string[] | Output modalities the model can produce (e.g., ‘text’, ‘audio’) |
| additionalProperties | dictionary | Additional provider-specific properties |