AI Command refers to the AI menu that space + '/' pops up by typing in the text box.
new AiEditor({
element: "#aiEditor",
ai:{
models:{
openai: {
apiKey: "sk-alQ96zbDn*****",
model:"gpt-4o",
}
},
commands:[
{
name: "AI Continuation Writing",
prompt: "Please help me further expand on this passage.",
},
{
name: "AI Inquiry",
prompt: "...",
},
]
},
})
commands configures the AI menu and supports the following parameters:
model is not configured or configured as "auto", the first configured large language model will be automatically selected.