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