Skip to content

AiModelConfig

Represents a configured AI model within a provider.

createdAt: string

ISO timestamp of creation


dimensions: number | null

Embedding dimensions (only for embedding models)


displayName: string

Human-readable model name


id: string

Unique identifier (ULID)


isDefaultChat: boolean

Whether this is the default chat model


isDefaultEmbedding: boolean

Whether this is the default embedding model


maxTokens: number

Maximum output tokens


modelId: string

Provider-specific model identifier (e.g., ‘@cf/zhipuai/glm-4.7-flash’)


modelType: "chat" | "embedding"

Model type: ‘chat’ for LLMs, ‘embedding’ for vector models


providerId: string

Reference to the parent provider


temperature: number

Generation temperature (0-2)


updatedAt: string

ISO timestamp of last update