-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecipe.yml
62 lines (62 loc) · 2.71 KB
/
recipe.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: 'Saplings - AI CKEditor Experience'
description: 'Configures CKEditor for AI translation and content generation.'
type: Editor
recipes:
- core/recipes/full_html_format_editor
install:
# Core.
- ckeditor5
- editor
- file
- filter
# Contrib.
- ai
- ai_ckeditor
- ai_provider_openai
- key
config:
actions:
# Configure CKEditor.
editor.editor.full_html:
addItemToToolbar:
item_name: aickeditor
simpleConfigUpdate:
settings.plugins.ai_ckeditor_ai.dialog.autoresize: 'min-width: 600px'
settings.plugins.ai_ckeditor_ai.dialog.height: '750'
settings.plugins.ai_ckeditor_ai.dialog.width: '900'
settings.plugins.ai_ckeditor_ai.dialog.dialog_class: ai-ckeditor-modal
settings.plugins.ai_ckeditor_ai.plugins.ai_ckeditor_completion.provider: openai__gpt-4o
settings.plugins.ai_ckeditor_ai.plugins.ai_ckeditor_completion.enabled: true
settings.plugins.ai_ckeditor_ai.plugins.ai_ckeditor_help.enabled: false
settings.plugins.ai_ckeditor_ai.plugins.ai_ckeditor_summarize.provider: openai__gpt-4o
settings.plugins.ai_ckeditor_ai.plugins.ai_ckeditor_summarize.enabled: true
settings.plugins.ai_ckeditor_ai.plugins.ai_ckeditor_tone.autocreate: false
settings.plugins.ai_ckeditor_ai.plugins.ai_ckeditor_tone.provider: openai__gpt-4o
settings.plugins.ai_ckeditor_ai.plugins.ai_ckeditor_tone.tone_vocabulary: ai_tones
settings.plugins.ai_ckeditor_ai.plugins.ai_ckeditor_tone.use_description: 1
settings.plugins.ai_ckeditor_ai.plugins.ai_ckeditor_tone.enabled: true
settings.plugins.ai_ckeditor_ai.plugins.ai_ckeditor_translate.autocreate: true
settings.plugins.ai_ckeditor_ai.plugins.ai_ckeditor_translate.provider: openai__gpt-4o
settings.plugins.ai_ckeditor_ai.plugins.ai_ckeditor_translate.translate_vocabulary: ai_languages
settings.plugins.ai_ckeditor_ai.plugins.ai_ckeditor_translate.use_description: false
settings.plugins.ai_ckeditor_ai.plugins.ai_ckeditor_translate.enabled: true
# Create the key entity if it does not exist.
key.key.openai_provider:
createIfNotExists:
langcode: en
status: true
id: openai_provider
label: 'OpenAI Provider'
description: 'OpenAI key created at https://platform.openai.com'
key_type: authentication
key_type_settings: { }
key_provider: file
key_provider_settings:
file_location: 'private://keys/openai_provider.key'
strip_line_breaks: true
key_input: none
key_input_settings: { }
# Configure the provider to use the key.
ai_provider_openai.settings:
simpleConfigUpdate:
api_key: openai_provider