AiModelConfig
Represents a configured AI model within a provider.
Properties
Section titled “Properties”createdAt
Section titled “createdAt”createdAt:
string
ISO timestamp of creation
dimensions
Section titled “dimensions”dimensions:
number|null
Embedding dimensions (only for embedding models)
displayName
Section titled “displayName”displayName:
string
Human-readable model name
id:
string
Unique identifier (ULID)
isDefaultChat
Section titled “isDefaultChat”isDefaultChat:
boolean
Whether this is the default chat model
isDefaultEmbedding
Section titled “isDefaultEmbedding”isDefaultEmbedding:
boolean
Whether this is the default embedding model
maxTokens
Section titled “maxTokens”maxTokens:
number
Maximum output tokens
modelId
Section titled “modelId”modelId:
string
Provider-specific model identifier (e.g., ‘@cf/zhipuai/glm-4.7-flash’)
modelType
Section titled “modelType”modelType:
"chat"|"embedding"
Model type: ‘chat’ for LLMs, ‘embedding’ for vector models
providerId
Section titled “providerId”providerId:
string
Reference to the parent provider
temperature
Section titled “temperature”temperature:
number
Generation temperature (0-2)
updatedAt
Section titled “updatedAt”updatedAt:
string
ISO timestamp of last update