AIChatModelsConfig
typedef
The configuration of the AI Chat models feature.
ClassicEditor.create( {
ai: {
chat: {
models: {
defaultModelId: ...,
modelSelectorAlwaysVisible: ...,
displayedModels: ...
}
}
}
} )
.then( ... )
.catch( ... );
See all editor options.
Properties
-
defaultModelId : string | undefined
module:ai/aichat/model/aichatmodels~AIChatModelsConfig#defaultModelId
Decides which model is selected by default when the AI Chat is initialized or when user starts a new conversation.
-
displayedModels : string | Array<string> | undefined
module:ai/aichat/model/aichatmodels~AIChatModelsConfig#displayedModels
Decides which models are visible in the model selector dropdown. It can be a string or an array of strings.
- It is optional and if not provided, all models are supported.
- If configured, editor will try to match the passed models by their ID, name or provider. Order by which the models are matched
- is later reflected in the model selector dropdown.
-
modelSelectorAlwaysVisible : boolean | undefined
module:ai/aichat/model/aichatmodels~AIChatModelsConfig#modelSelectorAlwaysVisible
Decides whether the model selector dropdown is always visible. It is
true
by default, which means the selector will be always visible in the UI. Setting it tofalse
, hides the model selector dropdown when:- Only one model is available.
- User has selected a model and send first message (which is the point when model cannot be changed).