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.1.6 1.6.86 0.1.7 1.6.87 0.1.8 1.6.88 0.1.9 1.6.89 0.2.0 1.6.90
ai-engine / constants / init.php
ai-engine / constants Last commit date
engines.php 1 month ago init.php 1 month ago models.php 1 month ago types.php 1 year ago
init.php
432 lines
1 <?php
2
3 require_once( MWAI_PATH . '/constants/engines.php' );
4 require_once( MWAI_PATH . '/constants/models.php' );
5
6 define( 'MWAI_CHATBOT_DEFAULT_PARAMS', [
7 // UI Parameters
8 'aiName' => 'AI: ',
9 'userName' => 'User: ',
10 'guestName' => 'Guest: ',
11 'textSend' => 'Send',
12 'textClear' => 'Clear',
13 'textInputPlaceholder' => 'Type your message...',
14 'textInputMaxLength' => 512,
15 'textCompliance' => '',
16 'startSentence' => 'Hi! How can I help you?',
17 'themeId' => 'chatgpt',
18 'window' => false,
19 'icon' => '',
20 'iconText' => '',
21 'iconTextDelay' => 1,
22 'iconAlt' => 'AI Engine Chatbot',
23 'iconPosition' => 'bottom-right',
24 'centerOpen' => false,
25 'width' => '',
26 'openDelay' => '',
27 'iconBubble' => false,
28 'windowAnimation' => 'zoom',
29 'fullscreen' => false,
30 'copyButton' => false,
31 'pdfButton' => false,
32 'headerSubtitle' => 'Discuss with',
33 'localMemory' => true,
34 'multiUpload' => false,
35 // UI Builder Parameters
36 'containerType' => 'standard',
37 'headerType' => 'standard',
38 'messagesType' => 'standard',
39 'inputType' => 'standard',
40 'footerType' => 'standard',
41 // Chatbot System Parameters
42 'botId' => null,
43 'instructions' => 'Converse as if you were an AI assistant. Be friendly, creative.',
44 'scope' => 'chatbot',
45 'mode' => 'chat',
46 'contentAware' => false,
47 'embeddingsEnvId' => '',
48 // AI Parameters
49 'model' => MWAI_FALLBACK_MODEL,
50 'temperature' => 0.8,
51 'maxMessages' => 15,
52 'maxTokens' => 4096,
53 'maxResults' => 1,
54 'apiKey' => null,
55 'voice' => null,
56 // Orchestration
57 'functions' => [],
58 'mcpServers' => [],
59 // Advanced
60 'historyStrategy' => null,
61 // Cross-Site
62 'crossSite' => [
63 'enabled' => false,
64 'allowedDomains' => []
65 ]
66 ] );
67
68 define( 'MWAI_LANGUAGES', [
69 'en' => 'English',
70 'de' => 'German',
71 'fr' => 'French',
72 'es' => 'Spanish',
73 'it' => 'Italian',
74 'zh' => 'Chinese',
75 'ja' => 'Japanese',
76 'pt' => 'Portuguese',
77 //'ru' => 'Russian',
78 ] );
79
80 define( 'MWAI_LIMITS', [
81 'enabled' => true,
82 'guests' => [
83 'credits' => 3,
84 'creditType' => 'queries',
85 'timeFrame' => 'day',
86 'isAbsolute' => false,
87 'overLimitMessage' => 'You have reached the limit (check the Insights Tab > Limits > Guests).',
88 ],
89 'users' => [
90 'credits' => 10,
91 'creditType' => 'price',
92 'timeFrame' => 'month',
93 'isAbsolute' => false,
94 'overLimitMessage' => 'You have reached the limit (check the Insights Tab > Limits > Users).',
95 'ignoredUsers' => 'administrator,editor',
96 ],
97 'system' => [
98 'credits' => 20,
99 'creditType' => 'price',
100 'timeFrame' => 'month',
101 'isAbsolute' => false,
102 'overLimitMessage' => 'Our chatbot went to sleep. Please try again later.',
103 'ignoredUsers' => '',
104 ],
105 ] );
106
107 define( 'MWAI_OPTIONS', [
108 'module_addons' => true,
109 'module_suggestions' => true,
110 'module_chatbots' => true,
111 'module_search' => false,
112 'search_frontend_method' => 'wordpress',
113 'search_frontend_env_id' => null,
114 'search_website_context' => 'This is a website with useful information and content.',
115 'module_library_search' => false,
116 'library_search_env_id' => null,
117 'module_forms' => false,
118 'forms_editor' => true,
119 'module_blocks' => false,
120 'module_assistant' => true,
121 'module_playground' => true,
122 'module_generator_content' => true,
123 'module_generator_images' => true,
124 'module_generator_videos' => false,
125 'module_moderation' => false,
126 'module_statistics' => false,
127 'statistics_retention_days' => 'Never',
128 // TODO: Remove module_finetunes after 2027-02 (OpenAI ends fine-tune job creation on 2027-01-06).
129 'module_finetunes' => false,
130 'module_embeddings' => false,
131 'module_transcription' => false,
132 'module_advisor' => false,
133 'module_orchestration' => false,
134 'module_mcp' => false,
135 'speech_recognition' => false,
136 'speech_synthesis' => false,
137 'chatbot_gdpr_consent' => false,
138 'chatbot_gdpr_text' => 'By using this chatbot, you agree to the recording and processing of your data by our website and the external services it might use (LLMs, vector databases, etc.).',
139 'chatbot_gdpr_button' => 'I understand',
140 'chatbot_typewriter' => false,
141 'chatbot_discussions' => false,
142 'chatbot_discussions_titling' => true,
143 'chatbot_discussions_paging' => 10,
144 'chatbot_discussions_refresh_interval' => 5,
145 'chatbot_discussions_retention_days' => 90,
146 'chatbot_discussions_metadata_enabled' => true,
147 'chatbot_discussions_metadata_start_date' => true,
148 'chatbot_discussions_metadata_last_update' => true,
149 'chatbot_discussions_metadata_message_count' => true,
150 'chatbot_moderation' => false,
151 'syntax_highlight' => false,
152 'event_logs' => false,
153 'privacy_first' => false,
154 'limits' => MWAI_LIMITS,
155
156 // Settings for Images
157 'image_local_upload' => 'uploads',
158 'image_remote_upload' => 'data',
159 'image_expires' => 1 * HOUR_IN_SECONDS,
160
161 'ai_models' => [],
162 'ai_models_usage' => [],
163 'ai_streaming' => true,
164 'ai_default_env' => null,
165 'ai_default_model' => MWAI_FALLBACK_MODEL,
166 'ai_envs' => [
167 [
168 'name' => 'OpenAI',
169 'type' => 'openai',
170 'apikey' => '',
171 // TODO: Drop the four finetunes* keys after 2027-02 (OpenAI ends fine-tune job creation on 2027-01-06).
172 'finetunes' => [],
173 'finetunes_deleted' => [],
174 'legacy_finetunes' => [],
175 'legacy_finetunes_deleted' => [],
176 ],
177 ],
178
179 'mcp_envs' => [],
180
181 'ai_fast_default_env' => null,
182 'ai_fast_default_model' => MWAI_FALLBACK_MODEL_FAST,
183 'ai_embeddings_default_env' => null,
184 'ai_embeddings_default_model' => 'text-embedding-3-small',
185 'ai_embeddings_default_dimensions' => 1536,
186 'ai_vision_default_env' => null,
187 'ai_vision_default_model' => 'gpt-5-mini',
188 'ai_images_default_env' => null,
189 'ai_images_default_model' => 'gpt-image-1.5',
190 'ai_images_default_quality' => null,
191 'ai_audio_default_env' => null,
192 'ai_audio_default_model' => 'whisper-1',
193 'ai_json_default_env' => null,
194 'ai_json_default_model' => 'gpt-5-mini',
195 'embeddings_default_env' => null,
196 'embeddings_envs' => [
197 [
198 'name' => 'OpenAI Vector Store',
199 'type' => 'openai-vector-store',
200 'openai_env_id' => null,
201 'store_id' => '',
202 ]
203 ],
204 'embeddings' => [
205 'rewriteContent' => true,
206 'rewritePrompt' => "Start your response with the title: {TITLE}\nOn the next line, provide a brief introductory sentence that explains what the content is about.\n\nThen leave an empty line and begin the rewritten content.\n\nRewrite the content concisely in {LANGUAGE}, maintaining the same style and information. The revised text should be under 800 words, with paragraphs ranging from 160-280 words each. Omit non-textual elements and avoid unnecessary repetition. Conclude with a statement directing readers to find more information at {URL}. If you cannot meet these requirements, please leave a blank response.\n\nThe content to rewrite is below, between '== START ==' and '== END =='.\n\n== START ==\n{CONTENT}\n== END ==\n\n",
207 'forceRecreate' => false,
208 'syncPosts' => false,
209 'syncPostsEnvId' => null,
210 'syncPostTypes' => ['post', 'page', 'product'],
211 'syncPostStatus' => ['publish'],
212 'syncPostCategories' => [],
213 ],
214 'public_api' => false,
215 'dev_mode' => false,
216 'debug_mode' => false,
217 'server_debug_mode' => false,
218 'mcp_debug_mode' => false,
219 'mcp_role' => 'admin',
220 'queries_debug_mode' => false,
221 'logs_path' => null,
222 'resolve_shortcodes' => false,
223 'context_max_length' => 16384,
224 'banned_words' => [],
225 'ignore_word_boundaries' => false,
226 'banned_ips' => [],
227 'languages' => MWAI_LANGUAGES,
228 'custom_languages' => [
229 'English (en)',
230 'German (de)',
231 'French (fr)',
232 'Spanish (es)',
233 'Italian (it)',
234 'Chinese (zh)',
235 'Japanese (ja)',
236 'Portuguese (pt)'
237 ],
238 'clean_uninstall' => false,
239
240 // ADMIN UI
241 'intro_message' => true,
242 'chatbot_select' => 'tabs'
243 ] );
244
245 define( 'MWAI_ALL_LANGUAGES', [
246 'aa' => 'Afar',
247 'ab' => 'Abkhazian',
248 'af' => 'Afrikaans',
249 'ak' => 'Akan',
250 'sq' => 'Albanian',
251 'am' => 'Amharic',
252 'ar' => 'Arabic',
253 'an' => 'Aragonese',
254 'hy' => 'Armenian',
255 'as' => 'Assamese',
256 'av' => 'Avaric',
257 'ae' => 'Avestan',
258 'ay' => 'Aymara',
259 'az' => 'Azerbaijani',
260 'ba' => 'Bashkir',
261 'bm' => 'Bambara',
262 'eu' => 'Basque',
263 'be' => 'Belarusian',
264 'bn' => 'Bengali',
265 'bh' => 'Bihari',
266 'bi' => 'Bislama',
267 'bs' => 'Bosnian',
268 'br' => 'Breton',
269 'bg' => 'Bulgarian',
270 'my' => 'Burmese',
271 'ca' => 'Catalan; Valencian',
272 'ch' => 'Chamorro',
273 'ce' => 'Chechen',
274 'zh' => 'Chinese',
275 'cu' => 'Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic',
276 'cv' => 'Chuvash',
277 'kw' => 'Cornish',
278 'co' => 'Corsican',
279 'cr' => 'Cree',
280 'cs' => 'Czech',
281 'da' => 'Danish',
282 'dv' => 'Divehi; Dhivehi; Maldivian',
283 'nl' => 'Dutch; Flemish',
284 'dz' => 'Dzongkha',
285 'en' => 'English',
286 'eo' => 'Esperanto',
287 'et' => 'Estonian',
288 'ee' => 'Ewe',
289 'fo' => 'Faroese',
290 'fj' => 'Fijjian',
291 'fi' => 'Finnish',
292 'fr' => 'French',
293 'fy' => 'Western Frisian',
294 'ff' => 'Fulah',
295 'ka' => 'Georgian',
296 'de' => 'German',
297 'gd' => 'Gaelic; Scottish Gaelic',
298 'ga' => 'Irish',
299 'gl' => 'Galician',
300 'gv' => 'Manx',
301 'el' => 'Greek, Modern',
302 'gn' => 'Guarani',
303 'gu' => 'Gujarati',
304 'ht' => 'Haitian; Haitian Creole',
305 'ha' => 'Hausa',
306 'he' => 'Hebrew',
307 'hz' => 'Herero',
308 'hi' => 'Hindi',
309 'ho' => 'Hiri Motu',
310 'hu' => 'Hungarian',
311 'ig' => 'Igbo',
312 'is' => 'Icelandic',
313 'io' => 'Ido',
314 'ii' => 'Sichuan Yi',
315 'iu' => 'Inuktitut',
316 'ie' => 'Interlingue',
317 'ia' => 'Interlingua (International Auxiliary Language Association)',
318 'id' => 'Indonesian',
319 'ik' => 'Inupiaq',
320 'it' => 'Italian',
321 'jv' => 'Javanese',
322 'ja' => 'Japanese',
323 'kl' => 'Kalaallisut; Greenlandic',
324 'kn' => 'Kannada',
325 'ks' => 'Kashmiri',
326 'kr' => 'Kanuri',
327 'kk' => 'Kazakh',
328 'km' => 'Central Khmer',
329 'ki' => 'Kikuyu; Gikuyu',
330 'rw' => 'Kinyarwanda',
331 'ky' => 'Kirghiz; Kyrgyz',
332 'kv' => 'Komi',
333 'kg' => 'Kongo',
334 'ko' => 'Korean',
335 'kj' => 'Kuanyama; Kwanyama',
336 'ku' => 'Kurdish',
337 'lo' => 'Lao',
338 'la' => 'Latin',
339 'lv' => 'Latvian',
340 'li' => 'Limburgan; Limburger; Limburgish',
341 'ln' => 'Lingala',
342 'lt' => 'Lithuanian',
343 'lb' => 'Luxembourgish; Letzeburgesch',
344 'lu' => 'Luba-Katanga',
345 'lg' => 'Ganda',
346 'mk' => 'Macedonian',
347 'mh' => 'Marshallese',
348 'ml' => 'Malayalam',
349 'mi' => 'Maori',
350 'mr' => 'Marathi',
351 'ms' => 'Malay',
352 'mg' => 'Malagasy',
353 'mt' => 'Maltese',
354 'mo' => 'Moldavian',
355 'mn' => 'Mongolian',
356 'na' => 'Nauru',
357 'nv' => 'Navajo; Navaho',
358 'nr' => 'Ndebele, South; South Ndebele',
359 'nd' => 'Ndebele, North; North Ndebele',
360 'ng' => 'Ndonga',
361 'ne' => 'Nepali',
362 'nn' => 'Norwegian Nynorsk; Nynorsk, Norwegian',
363 'nb' => 'Bokmål, Norwegian, Norwegian Bokmål',
364 'no' => 'Norwegian',
365 'ny' => 'Chichewa; Chewa; Nyanja',
366 'oc' => 'Occitan, Provençal',
367 'oj' => 'Ojibwa',
368 'or' => 'Oriya',
369 'om' => 'Oromo',
370 'os' => 'Ossetian; Ossetic',
371 'pa' => 'Panjabi; Punjabi',
372 'fa' => 'Persian',
373 'pi' => 'Pali',
374 'pl' => 'Polish',
375 'pt' => 'Portuguese',
376 'ps' => 'Pushto',
377 'qu' => 'Quechua',
378 'rm' => 'Romansh',
379 'ro' => 'Romanian',
380 'rn' => 'Rundi',
381 'ru' => 'Russian',
382 'sg' => 'Sango',
383 'sa' => 'Sanskrit',
384 'sr' => 'Serbian',
385 'hr' => 'Croatian',
386 'si' => 'Sinhala; Sinhalese',
387 'sk' => 'Slovak',
388 'sl' => 'Slovenian',
389 'se' => 'Northern Sami',
390 'sm' => 'Samoan',
391 'sn' => 'Shona',
392 'sd' => 'Sindhi',
393 'so' => 'Somali',
394 'st' => 'Sotho, Southern',
395 'es' => 'Spanish; Castilian',
396 'sc' => 'Sardinian',
397 'ss' => 'Swati',
398 'su' => 'Sundanese',
399 'sw' => 'Swahili',
400 'sv' => 'Swedish',
401 'ty' => 'Tahitian',
402 'ta' => 'Tamil',
403 'tt' => 'Tatar',
404 'te' => 'Telugu',
405 'tg' => 'Tajik',
406 'tl' => 'Tagalog',
407 'th' => 'Thai',
408 'bo' => 'Tibetan',
409 'ti' => 'Tigrinya',
410 'to' => 'Tonga (Tonga Islands)',
411 'tn' => 'Tswana',
412 'ts' => 'Tsonga',
413 'tk' => 'Turkmen',
414 'tr' => 'Turkish',
415 'tw' => 'Twi',
416 'ug' => 'Uighur; Uyghur',
417 'uk' => 'Ukrainian',
418 'ur' => 'Urdu',
419 'uz' => 'Uzbek',
420 've' => 'Venda',
421 'vi' => 'Vietnamese',
422 'vo' => 'Volapük',
423 'cy' => 'Welsh',
424 'wa' => 'Walloon',
425 'wo' => 'Wolof',
426 'xh' => 'Xhosa',
427 'yi' => 'Yiddish',
428 'yo' => 'Yoruba',
429 'za' => 'Zhuang; Chuang',
430 'zu' => 'Zulu',
431 ] );
432