Sign up (with export icon)

AIChatModelsConfig

Api-typedef icon typedef

The configuration of the AI Chat models feature.

ClassicEditor.create( {
	ai: {
		chat: {
			models: {
				defaultModelId: ...,
				modelSelectorAlwaysVisible: ...,
				displayedModels: ...
			}
		}
	}
} )
.then( ... )
.catch( ... );
Copy code

See all editor options.

Properties

  • Chevron-right icon

    defaultModelId : string | undefined

    Decides which model is selected by default when the AI Chat is initialized or when user starts a new conversation.

  • Chevron-right icon

    displayedModels : string | Array<string> | undefined

    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.
  • Chevron-right icon

    modelSelectorAlwaysVisible : boolean | undefined

    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 to false, 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).