AIChatConfig
interface
The configuration of the AI Chat feature.
The properties defined in this config are set in the config.ai.chat namespace.
ClassicEditor
.create( editorElement, {
ai: {
chat: {
// AI Chat configuration.
}
}
} )
.then( ... )
.catch( ... );
Copy code
See the full AI configuration.
See all editor options.
Properties
module:ai/aichat/aichat~AIChatConfig#contextThe configuration of the AI Chat context.
Read more in
AIChatContextConfig.initialConversation : string | undefinedmodule:ai/aichat/aichat~AIChatConfig#initialConversationDecides which conversation will be loaded after the feature has initialized.
Possible values are:
'new'- a new conversation is started (default),'lastCreated'- the most recently created conversation will be loaded,- conversation ID - the conversation with given ID will be loaded.
If
'lastCreated'is set while the conversation history is empty, a new conversation will be started instead.If the conversation with the specified ID is not found, an error will be thrown.
Defaults to
'new'