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