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.6.83 0.1.4 1.6.84 0.1.5 1.6.85 0.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
init.php 2 years ago models.php 2 years ago
init.php
423 lines
1 <?php
2
3 require_once( MWAI_PATH . '/constants/models.php' );
4
5 // Thisi
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 'maxSentences' => 15,
18 'themeId' => 'chatgpt',
19 'window' => false,
20 'icon' => '',
21 'iconText' => '',
22 'iconAlt' => 'AI Chatbot Avatar',
23 'iconPosition' => 'bottom-right',
24 'fullscreen' => false,
25 'copyButton' => false,
26 'localMemory' => true,
27 // Chatbot System Parameters
28 'botId' => null,
29 'context' => "Converse as if you were an AI assistant. Be friendly, creative.",
30 'env' => 'chatbot',
31 'mode' => 'chat',
32 'contentAware' => false,
33 'embeddingsEnvId' => '',
34 'embeddingsIndex' => '',
35 'embeddingsNamespace' => null,
36 'casuallyFineTuned' => false,
37 'promptEnding' => null,
38 'completionEnding' => null,
39 // AI Parameters
40 'model' => MWAI_FALLBACK_MODEL,
41 'temperature' => 0.8,
42 'maxTokens' => 1024,
43 'maxResults' => 1,
44 'apiKey' => null,
45 'service' => 'openai'
46 ] );
47
48 // This is the defaults for the old chatbot (Vanilla JS)
49 define( 'MWAI_CHATBOT_PARAMS', [
50 // UI Parameters
51 'id' => '',
52 'env' => 'chatbot',
53 'mode' => 'chat',
54 'context' => "Converse as if you were an AI assistant. Be friendly, creative.",
55 'ai_name' => "AI: ",
56 'user_name' => "User: ",
57 'guest_name' => "Guest: ",
58 'sys_name' => "System: ",
59 'start_sentence' => "Hi! How can I help you?",
60 'text_send' => 'Send',
61 'text_clear' => 'Clear',
62 'text_input_placeholder' => 'Type your message...',
63 'text_input_maxlength' => '512',
64 'text_compliance' => '',
65 'max_messages' => 15,
66 'style' => 'chatgpt', // This is only used in the old version of Chatbot
67 'themeId' => 'chatgpt',
68 'window' => false,
69 'icon' => '',
70 'icon_text' => '',
71 'icon_alt' => 'AI Chatbot Avatar',
72 'icon_position' => 'bottom-right',
73 'fullscreen' => false,
74 'copy_button' => false,
75 'local_memory' => true,
76 // Chatbot System Parameters
77 'casually_fine_tuned' => false,
78 'content_aware' => false,
79 'embeddings_index' => '',
80 'prompt_ending' => null,
81 'completion_ending' => null,
82 // AI Parameters
83 'model' => MWAI_FALLBACK_MODEL,
84 'temperature' => 0.8,
85 'max_tokens' => 1024,
86 'max_results' => 1,
87 'api_key' => null,
88 'service' => 'openai'
89 ] );
90
91 define( 'MWAI_LANGUAGES', [
92 'en' => 'English',
93 'de' => 'German',
94 'fr' => 'French',
95 'es' => 'Spanish',
96 'it' => 'Italian',
97 'zh' => 'Chinese',
98 'ja' => 'Japanese',
99 'pt' => 'Portuguese',
100 //'ru' => 'Russian',
101 ] );
102
103 define ( 'MWAI_LIMITS', [
104 'enabled' => true,
105 'guests' => [
106 'credits' => 3,
107 'creditType' => 'queries',
108 'timeFrame' => 'day',
109 'isAbsolute' => false,
110 'overLimitMessage' => "You have reached the limit.",
111 ],
112 'users' => [
113 'credits' => 10,
114 'creditType' => 'price',
115 'timeFrame' => 'month',
116 'isAbsolute' => false,
117 'overLimitMessage' => "You have reached the limit.",
118 'ignoredUsers' => "administrator,editor",
119 ],
120 'system' => [
121 'credits' => 20,
122 'creditType' => 'price',
123 'timeFrame' => 'month',
124 'isAbsolute' => false,
125 'overLimitMessage' => "Our chatbot went to sleep. Please try again later.",
126 'ignoredUsers' => "",
127 ],
128 ] );
129
130 define( 'MWAI_OPTIONS', [
131 'module_suggestions' => true,
132 'module_woocommerce' => true,
133 'module_forms' => false,
134 'module_blocks' => false,
135 'module_playground' => true,
136 'module_generator_content' => true,
137 'module_generator_images' => true,
138 'module_moderation' => false,
139 'module_statistics' => false,
140 'module_finetunes' => false,
141 //'module_legacy_finetunes' => false,
142 'module_embeddings' => false,
143 'module_audio' => false,
144 'shortcode_chat' => true,
145 'shortcode_chat_params' => MWAI_CHATBOT_PARAMS,
146 'shortcode_chat_params_override' => false,
147 'shortcode_chat_html' => true,
148 'shortcode_chat_formatting' => true,
149 'shortcode_chat_legacy' => false,
150 'shortcode_chat_stream' => false,
151 'shortcode_chat_typewriter' => false,
152 'speech_recognition' => false,
153 'speech_synthesis' => false,
154 'shortcode_chat_discussions' => false,
155 'shortcode_chat_moderation' => false,
156 'shortcode_chat_syntax_highlighting' => false,
157 'shortcode_chat_inject' => false,
158 'shortcode_chat_styles' => [],
159 'limits' => MWAI_LIMITS,
160
161 // General Settings for OpenAI
162 'fallback_model' => MWAI_FALLBACK_MODEL,
163 'openai_models' => Meow_MWAI_Engines_OpenAI::get_openai_models(),
164 'openai_usage' => [],
165
166 // TODO: To Migrate (Azure)
167 'openai_azure_endpoint' => '',
168 'openai_azure_apikey' => '',
169 'openai_azure_deployments' => [],
170
171 // TODO: To Migrate (OpenAI)
172 'openai_apikey' => false,
173 'openai_finetunes' => [], // All finetunes listed by OpenAI
174 'openai_finetunes_deleted' => [], // The finetunes that have been deleted
175 'openai_legacy_finetunes' => [],
176 'openai_legacy_finetunes_deleted' => [],
177
178 // TODO: openai_service to ai_env_default
179 'openai_service' => 'openai', // 'openai', 'azure' (if not set here, it will use the Settings)
180
181 'ai_default_env' => null,
182 'ai_default_model' => MWAI_FALLBACK_MODEL,
183 'ai_envs' => [
184 [
185 'name' => 'OpenAI',
186 'type' => 'openai',
187 'apikey' => '',
188 'finetunes' => [],
189 'finetunes_deleted' => [],
190 'legacy_finetunes' => [],
191 'legacy_finetunes_deleted' => [],
192 'usage' => [], // TODO: We should only keep the last year of usage
193 ],
194 [
195 'name' => 'Azure',
196 'type' => 'azure/openai',
197 'apikey' => '',
198 ]
199 ],
200
201 'embeddings_default_env' => null,
202 'embeddings_envs' => [
203 [
204 'name' => 'Pinecone',
205 'type' => 'pinecone',
206 'apikey' => '',
207 'server' => 'gcp-starter',
208 'indexes' => [],
209 'namespaces' => [],
210 'index' => null
211 ]
212 ],
213 'embeddings' => [
214 'rewriteContent' => true,
215 'rewritePrompt' => "Rewrite 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. The content is below, between '== START ==' and '== END =='.\n\n== START ==\n{CONTENT}\n== END ==\n\n",
216 'forceRecreate' => false,
217 'maxSelect' => 1,
218 'minScore' => 75,
219 'syncPosts' => false,
220 'syncPostsEnv' => null,
221 'syncPostTypes' => ['post', 'page', 'product'],
222 'syncPostStatus' => ['publish'],
223 ],
224 'extra_models' => "",
225 'public_api' => false,
226 'debug_mode' => true,
227 'intro_message' => true,
228 'resolve_shortcodes' => false,
229 'dynamic_max_tokens' => true,
230 'context_max_tokens' => 1024,
231 'banned_words' => [],
232 'banned_ips' => [],
233 'languages' => MWAI_LANGUAGES,
234 'clean_uninstall' => false,
235 ] );
236
237 define( 'MWAI_ALL_LANGUAGES', [
238 'aa' => 'Afar',
239 'ab' => 'Abkhazian',
240 'af' => 'Afrikaans',
241 'ak' => 'Akan',
242 'sq' => 'Albanian',
243 'am' => 'Amharic',
244 'ar' => 'Arabic',
245 'an' => 'Aragonese',
246 'hy' => 'Armenian',
247 'as' => 'Assamese',
248 'av' => 'Avaric',
249 'ae' => 'Avestan',
250 'ay' => 'Aymara',
251 'az' => 'Azerbaijani',
252 'ba' => 'Bashkir',
253 'bm' => 'Bambara',
254 'eu' => 'Basque',
255 'be' => 'Belarusian',
256 'bn' => 'Bengali',
257 'bh' => 'Bihari',
258 'bi' => 'Bislama',
259 'bs' => 'Bosnian',
260 'br' => 'Breton',
261 'bg' => 'Bulgarian',
262 'my' => 'Burmese',
263 'ca' => 'Catalan; Valencian',
264 'ch' => 'Chamorro',
265 'ce' => 'Chechen',
266 'zh' => 'Chinese',
267 'cu' => 'Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic',
268 'cv' => 'Chuvash',
269 'kw' => 'Cornish',
270 'co' => 'Corsican',
271 'cr' => 'Cree',
272 'cs' => 'Czech',
273 'da' => 'Danish',
274 'dv' => 'Divehi; Dhivehi; Maldivian',
275 'nl' => 'Dutch; Flemish',
276 'dz' => 'Dzongkha',
277 'en' => 'English',
278 'eo' => 'Esperanto',
279 'et' => 'Estonian',
280 'ee' => 'Ewe',
281 'fo' => 'Faroese',
282 'fj' => 'Fijjian',
283 'fi' => 'Finnish',
284 'fr' => 'French',
285 'fy' => 'Western Frisian',
286 'ff' => 'Fulah',
287 'ka' => 'Georgian',
288 'de' => 'German',
289 'gd' => 'Gaelic; Scottish Gaelic',
290 'ga' => 'Irish',
291 'gl' => 'Galician',
292 'gv' => 'Manx',
293 'el' => 'Greek, Modern',
294 'gn' => 'Guarani',
295 'gu' => 'Gujarati',
296 'ht' => 'Haitian; Haitian Creole',
297 'ha' => 'Hausa',
298 'he' => 'Hebrew',
299 'hz' => 'Herero',
300 'hi' => 'Hindi',
301 'ho' => 'Hiri Motu',
302 'hu' => 'Hungarian',
303 'ig' => 'Igbo',
304 'is' => 'Icelandic',
305 'io' => 'Ido',
306 'ii' => 'Sichuan Yi',
307 'iu' => 'Inuktitut',
308 'ie' => 'Interlingue',
309 'ia' => 'Interlingua (International Auxiliary Language Association)',
310 'id' => 'Indonesian',
311 'ik' => 'Inupiaq',
312 'it' => 'Italian',
313 'jv' => 'Javanese',
314 'ja' => 'Japanese',
315 'kl' => 'Kalaallisut; Greenlandic',
316 'kn' => 'Kannada',
317 'ks' => 'Kashmiri',
318 'kr' => 'Kanuri',
319 'kk' => 'Kazakh',
320 'km' => 'Central Khmer',
321 'ki' => 'Kikuyu; Gikuyu',
322 'rw' => 'Kinyarwanda',
323 'ky' => 'Kirghiz; Kyrgyz',
324 'kv' => 'Komi',
325 'kg' => 'Kongo',
326 'ko' => 'Korean',
327 'kj' => 'Kuanyama; Kwanyama',
328 'ku' => 'Kurdish',
329 'lo' => 'Lao',
330 'la' => 'Latin',
331 'lv' => 'Latvian',
332 'li' => 'Limburgan; Limburger; Limburgish',
333 'ln' => 'Lingala',
334 'lt' => 'Lithuanian',
335 'lb' => 'Luxembourgish; Letzeburgesch',
336 'lu' => 'Luba-Katanga',
337 'lg' => 'Ganda',
338 'mk' => 'Macedonian',
339 'mh' => 'Marshallese',
340 'ml' => 'Malayalam',
341 'mi' => 'Maori',
342 'mr' => 'Marathi',
343 'ms' => 'Malay',
344 'mg' => 'Malagasy',
345 'mt' => 'Maltese',
346 'mo' => 'Moldavian',
347 'mn' => 'Mongolian',
348 'na' => 'Nauru',
349 'nv' => 'Navajo; Navaho',
350 'nr' => 'Ndebele, South; South Ndebele',
351 'nd' => 'Ndebele, North; North Ndebele',
352 'ng' => 'Ndonga',
353 'ne' => 'Nepali',
354 'nn' => 'Norwegian Nynorsk; Nynorsk, Norwegian',
355 'nb' => 'Bokmål, Norwegian, Norwegian Bokmål',
356 'no' => 'Norwegian',
357 'ny' => 'Chichewa; Chewa; Nyanja',
358 'oc' => 'Occitan, Provençal',
359 'oj' => 'Ojibwa',
360 'or' => 'Oriya',
361 'om' => 'Oromo',
362 'os' => 'Ossetian; Ossetic',
363 'pa' => 'Panjabi; Punjabi',
364 'fa' => 'Persian',
365 'pi' => 'Pali',
366 'pl' => 'Polish',
367 'pt' => 'Portuguese',
368 'ps' => 'Pushto',
369 'qu' => 'Quechua',
370 'rm' => 'Romansh',
371 'ro' => 'Romanian',
372 'rn' => 'Rundi',
373 'ru' => 'Russian',
374 'sg' => 'Sango',
375 'sa' => 'Sanskrit',
376 'sr' => 'Serbian',
377 'hr' => 'Croatian',
378 'si' => 'Sinhala; Sinhalese',
379 'sk' => 'Slovak',
380 'sl' => 'Slovenian',
381 'se' => 'Northern Sami',
382 'sm' => 'Samoan',
383 'sn' => 'Shona',
384 'sd' => 'Sindhi',
385 'so' => 'Somali',
386 'st' => 'Sotho, Southern',
387 'es' => 'Spanish; Castilian',
388 'sc' => 'Sardinian',
389 'ss' => 'Swati',
390 'su' => 'Sundanese',
391 'sw' => 'Swahili',
392 'sv' => 'Swedish',
393 'ty' => 'Tahitian',
394 'ta' => 'Tamil',
395 'tt' => 'Tatar',
396 'te' => 'Telugu',
397 'tg' => 'Tajik',
398 'tl' => 'Tagalog',
399 'th' => 'Thai',
400 'bo' => 'Tibetan',
401 'ti' => 'Tigrinya',
402 'to' => 'Tonga (Tonga Islands)',
403 'tn' => 'Tswana',
404 'ts' => 'Tsonga',
405 'tk' => 'Turkmen',
406 'tr' => 'Turkish',
407 'tw' => 'Twi',
408 'ug' => 'Uighur; Uyghur',
409 'uk' => 'Ukrainian',
410 'ur' => 'Urdu',
411 'uz' => 'Uzbek',
412 've' => 'Venda',
413 'vi' => 'Vietnamese',
414 'vo' => 'Volapük',
415 'cy' => 'Welsh',
416 'wa' => 'Walloon',
417 'wo' => 'Wolof',
418 'xh' => 'Xhosa',
419 'yi' => 'Yiddish',
420 'yo' => 'Yoruba',
421 'za' => 'Zhuang; Chuang',
422 'zu' => 'Zulu',
423 ] );