File manager - Edit - /home/verseaumee/empowernetkenyajuly2026/constants.zip
Back
PK �{.]$X��� � engines.phpnu �[��� <?php define( 'MWAI_ENGINES', [ [ 'name' => 'OpenAI', 'type' => 'openai', 'inputs' => ['apikey', 'organizationId'], 'internal' => true, 'models' => [] ], [ 'name' => 'Anthropic', 'type' => 'anthropic', 'inputs' => ['apikey'], 'internal' => true, 'models' => [] ], [ 'name' => 'Azure (OpenAI)', 'type' => 'azure', 'inputs' => ['apikey', 'endpoint', 'region'], 'internal' => true, 'models' => [] ], [ 'name' => 'Google', 'type' => 'google', 'inputs' => ['apikey', 'dynamicModels'], 'internal' => true, 'models' => [] ], [ 'name' => 'OpenRouter', 'type' => 'openrouter', 'inputs' => ['apikey', 'dynamicModels'], 'internal' => true, 'models' => [] ], [ 'name' => 'Replicate', 'type' => 'replicate', 'inputs' => ['apikey', 'dynamicModels'], 'internal' => true, 'models' => [] ], [ 'name' => 'Perplexity', 'type' => 'perplexity', 'inputs' => ['apikey'], 'internal' => true, 'models' => [] ], [ 'name' => 'Mistral', 'type' => 'mistral', 'inputs' => ['apikey', 'dynamicModels'], 'internal' => true, 'models' => [] ], [ 'name' => 'xAI (Grok)', 'type' => 'xai', 'inputs' => ['apikey', 'dynamicModels'], 'internal' => true, 'models' => [] ], [ 'name' => 'Custom (OpenAI-Compatible)', 'type' => 'custom', 'inputs' => ['endpoint', 'apikey', 'dynamicModels'], 'internal' => true, 'models' => [] ], ] ); PK �{.]Uj�͜� �� models.phpnu �[��� <?php // Price as of June 2024: https://openai.com/api/pricing/ // TODO: After 2027-02 (OpenAI ends fine-tune job creation on 2027-01-06), drop the `finetune` key from every model entry below and remove 'finetune' from every model's `tags` array. define( 'MWAI_OPENAI_MODELS', [ /* GPT-5.5 Latest flagship: tool-heavy agents, grounded assistants, long-context retrieval https://developers.openai.com/api/docs/models/gpt-5.5 */ [ 'model' => 'gpt-5.5', 'name' => 'GPT-5.5', 'family' => 'gpt-5', 'features' => ['completion'], 'price' => [ 'in' => 5.00, 'out' => 30.00, 'cached' => 0.50, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 128000, 'maxContextualTokens' => 1050000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity', 'latest'], 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'], 'params' => [ 'reasoning' => ['none', 'low', 'medium', 'high', 'xhigh'], 'verbosity' => ['low', 'medium', 'high'] ] ], /* GPT-5.4 Our most capable model for professional work https://platform.openai.com/docs/models/gpt-5.4 */ [ 'model' => 'gpt-5.4', 'name' => 'GPT-5.4', 'family' => 'gpt-5', 'features' => ['completion'], 'price' => [ 'in' => 2.50, 'out' => 15.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 128000, 'maxContextualTokens' => 1050000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'], 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'], 'params' => [ 'reasoning' => ['none', 'low', 'medium', 'high', 'xhigh'], 'verbosity' => ['low', 'medium', 'high'] ] ], /* GPT-5.4 Pro Most advanced model with enhanced reasoning for complex tasks https://developers.openai.com/api/docs/models/gpt-5.4-pro */ [ 'model' => 'gpt-5.4-pro', 'name' => 'GPT-5.4 Pro', 'family' => 'gpt-5', 'features' => ['completion'], 'price' => [ 'in' => 30.00, 'out' => 180.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 128000, 'maxContextualTokens' => 1050000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'responses', 'mcp', 'reasoning'], 'tools' => ['web_search', 'image_generation', 'file_search'], 'params' => [ 'reasoning' => ['medium', 'high', 'xhigh'], ] ], /* GPT-5.4 Mini Fast and cost-effective GPT-5.4 variant https://developers.openai.com/api/docs/models/gpt-5.4-mini */ [ 'model' => 'gpt-5.4-mini', 'name' => 'GPT-5.4 Mini', 'family' => 'gpt-5', 'features' => ['completion'], 'price' => [ 'in' => 0.75, 'out' => 4.50, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 128000, 'maxContextualTokens' => 400000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'], 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'], 'params' => [ 'reasoning' => ['none', 'low', 'medium', 'high', 'xhigh'], 'verbosity' => ['low', 'medium', 'high'] ] ], /* GPT-5.4 Nano Ultra-fast and lightweight GPT-5.4 model https://developers.openai.com/api/docs/models/gpt-5.4-nano */ [ 'model' => 'gpt-5.4-nano', 'name' => 'GPT-5.4 Nano', 'family' => 'gpt-5', 'features' => ['completion'], 'price' => [ 'in' => 0.20, 'out' => 1.25, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 128000, 'maxContextualTokens' => 400000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'], 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'], 'params' => [ 'reasoning' => ['none', 'low', 'medium', 'high', 'xhigh'], 'verbosity' => ['low', 'medium', 'high'] ] ], /* GPT-5.3 Chat GPT-5.3 model used in ChatGPT https://developers.openai.com/api/docs/models/gpt-5.3-chat-latest Shutdown: August 10, 2026. */ [ 'model' => 'gpt-5.3-chat-latest', 'name' => 'GPT-5.3 Chat', 'family' => 'gpt-5', 'features' => ['completion'], 'price' => [ 'in' => 1.75, 'out' => 14.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 16384, 'maxContextualTokens' => 128000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'deprecated'], 'tools' => ['image_generation', 'code_interpreter'] ], /* GPT-5.2 The best model for coding and agentic tasks across industries https://platform.openai.com/docs/models/gpt-5.2 */ [ 'model' => 'gpt-5.2', 'name' => 'GPT-5.2', 'family' => 'gpt-5', 'features' => ['completion'], 'price' => [ 'in' => 1.75, 'out' => 14.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 128000, 'maxContextualTokens' => 400000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'], 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'], 'params' => [ 'reasoning' => ['none', 'low', 'medium', 'high', 'xhigh'], 'verbosity' => ['low', 'medium', 'high'] ] ], /* GPT-5.2 Chat GPT-5.2 model used in ChatGPT https://platform.openai.com/docs/models/gpt-5.2 Shutdown: August 10, 2026. */ [ 'model' => 'gpt-5.2-chat-latest', 'name' => 'GPT-5.2 Chat', 'family' => 'gpt-5', 'features' => ['completion'], 'price' => [ 'in' => 1.75, 'out' => 14.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 128000, 'maxContextualTokens' => 400000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'responses', 'mcp', 'deprecated'], 'tools' => ['web_search', 'file_search', 'code_interpreter'] ], /* GPT-5.2 Pro Version of GPT-5.2 that produces smarter and more precise responses https://platform.openai.com/docs/models/gpt-5.2-pro */ [ 'model' => 'gpt-5.2-pro', 'name' => 'GPT-5.2 Pro', 'family' => 'gpt-5', 'features' => ['completion'], 'price' => [ 'in' => 21.00, 'out' => 168.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 128000, 'maxContextualTokens' => 400000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'], 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'], 'params' => [ 'reasoning' => ['medium', 'high', 'xhigh'], 'verbosity' => ['low', 'medium', 'high'] ] ], /* GPT-5.1 Demo model with enhanced capabilities https://platform.openai.com/docs/models/gpt-5.1 */ [ 'model' => 'gpt-5.1', 'name' => 'GPT-5.1', 'family' => 'gpt-5', 'features' => ['completion'], 'price' => [ 'in' => 1.25, 'out' => 10.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 128000, 'maxContextualTokens' => 400000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'], 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'], 'params' => [ 'reasoning' => ['none', 'minimal', 'low', 'medium', 'high'], 'verbosity' => ['low', 'medium', 'high'] ] ], /* GPT-5 The best model for coding and agentic tasks across domains https://platform.openai.com/docs/models/gpt-5 */ [ 'model' => 'gpt-5', 'name' => 'GPT-5', 'family' => 'gpt-5', 'features' => ['completion'], 'price' => [ 'in' => 1.25, 'out' => 10.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 128000, 'maxContextualTokens' => 400000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'], 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'], 'params' => [ 'reasoning' => ['none', 'minimal', 'low', 'medium', 'high'], 'verbosity' => ['low', 'medium', 'high'] ] ], /* GPT-5 Mini Efficient and cost-effective GPT-5 variant https://platform.openai.com/docs/models/gpt-5-mini */ [ 'model' => 'gpt-5-mini', 'name' => 'GPT-5 Mini', 'family' => 'gpt-5', 'features' => ['completion'], 'price' => [ 'in' => 0.25, 'out' => 2.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 128000, 'maxContextualTokens' => 400000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'], 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'], 'params' => [ 'reasoning' => ['none', 'minimal', 'low', 'medium', 'high'], 'verbosity' => ['low', 'medium', 'high'] ] ], /* GPT-5 Nano Ultra-fast and lightweight GPT-5 model https://platform.openai.com/docs/models/gpt-5-nano */ [ 'model' => 'gpt-5-nano', 'name' => 'GPT-5 Nano', 'family' => 'gpt-5', 'features' => ['completion'], 'price' => [ 'in' => 0.05, 'out' => 0.40, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 128000, 'maxContextualTokens' => 400000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'], 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'], 'params' => [ 'reasoning' => ['none', 'minimal', 'low', 'medium', 'high'], 'verbosity' => ['low', 'medium', 'high'] ] ], /* GPT-5 Chat GPT-5 model used in ChatGPT https://platform.openai.com/docs/models/gpt-5 */ [ 'model' => 'gpt-5-chat-latest', 'name' => 'GPT-5 Chat', 'family' => 'gpt-5', 'features' => ['completion'], 'price' => [ 'in' => 1.25, 'out' => 10.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 16384, 'maxContextualTokens' => 128000, 'finetune' => false, // Shutdown: July 23, 2026. 'tags' => ['core', 'chat', 'vision', 'files', 'responses', 'mcp', 'deprecated'], 'tools' => ['web_search', 'file_search', 'code_interpreter'], 'params' => [ 'verbosity' => ['low', 'medium', 'high'] ] ], /* GPT-5 Pro Version of GPT-5 that produces smarter and more precise responses https://platform.openai.com/docs/models/gpt-5 */ [ 'model' => 'gpt-5-pro', 'name' => 'GPT-5 Pro', 'family' => 'gpt-5', 'features' => ['completion'], 'price' => [ 'in' => 15.00, 'out' => 120.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 272000, 'maxContextualTokens' => 400000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'json', 'responses', 'mcp', 'reasoning', 'verbosity'], 'tools' => ['web_search', 'image_generation', 'file_search', 'code_interpreter'], 'params' => [ 'reasoning' => ['none', 'minimal', 'low', 'medium', 'high'], 'verbosity' => ['low', 'medium', 'high'] ] ], /* GPT 4.1 Flagship GPT model for complex tasks https://platform.openai.com/docs/models/gpt-4.1 */ [ 'model' => 'gpt-4.1', 'name' => 'GPT-4.1', 'family' => 'gpt-4', 'features' => ['completion'], 'price' => [ 'in' => 2.00, 'out' => 8.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 32768, 'maxContextualTokens' => 1047576, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'responses', 'mcp', 'deprecated'], 'tools' => ['web_search', 'image_generation', 'code_interpreter'] ], /* GPT-4.1 mini Balanced for intelligence, speed, and cost https://platform.openai.com/docs/models/gpt-4.1-mini */ [ 'model' => 'gpt-4.1-mini', 'name' => 'GPT-4.1 Mini', 'family' => 'gpt-4', 'features' => ['completion'], 'price' => [ 'in' => 0.40, 'out' => 1.60, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 32768, 'maxContextualTokens' => 1047576, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'responses', 'mcp', 'deprecated'], 'tools' => ['web_search', 'image_generation', 'code_interpreter'] ], /* GPT-4.1 nano Fastest, most cost-effective GPT-4.1 model https://platform.openai.com/docs/models/gpt-4.1-nano */ [ 'model' => 'gpt-4.1-nano', 'name' => 'GPT-4.1 Nano', 'family' => 'gpt-4', 'features' => ['completion'], 'price' => [ 'in' => 0.10, 'out' => 0.40, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 32768, 'maxContextualTokens' => 1047576, 'finetune' => false, // Shutdown: October 23, 2026. 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'responses', 'mcp', 'deprecated'], 'tools' => ['image_generation'] ], /* GPT-4o Fast, intelligent, flexible GPT model https://platform.openai.com/docs/models/gpt-4o */ [ 'model' => 'gpt-4o', 'name' => 'GPT-4o', 'family' => 'gpt-4', 'features' => ['completion'], 'price' => [ 'in' => 2.50, 'out' => 10.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 16384, 'maxContextualTokens' => 128000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'mcp', 'responses', 'deprecated'], 'tools' => ['web_search', 'image_generation', 'code_interpreter'] ], /* GPT-4o mini Fast, affordable small model for focused tasks https://platform.openai.com/docs/models/gpt-4o-mini */ [ 'model' => 'gpt-4o-mini', 'name' => 'GPT-4o Mini', 'family' => 'gpt-4', 'features' => ['completion'], 'price' => [ 'in' => 0.15, 'out' => 0.60, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 16384, 'maxContextualTokens' => 128000, 'finetune' => [ 'in' => 0.15, 'out' => 0.60, 'train' => 3.00 ], 'tags' => ['core', 'chat', 'vision', 'functions', 'json', 'finetune', 'mcp', 'responses', 'deprecated'], 'tools' => ['web_search', 'image_generation', 'code_interpreter'] ], /* o3 Advanced reasoning model https://platform.openai.com/docs/models/o3 */ [ 'model' => 'o3', 'name' => 'o3', 'family' => 'o3', 'features' => ['completion'], 'price' => [ 'in' => 15.00, 'out' => 60.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 100000, 'maxContextualTokens' => 200000, 'tags' => ['core', 'chat', 'o1-model', 'reasoning', 'responses', 'mcp'], 'tools' => ['web_search', 'image_generation', 'code_interpreter'] ], /* o3-mini Fast, flexible, intelligent reasoning model https://platform.openai.com/docs/models/o3-mini */ [ 'model' => 'o3-mini', 'name' => 'o3 Mini', 'family' => 'o3', 'features' => ['completion'], 'price' => [ 'in' => 1.10, 'out' => 4.40, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 100000, 'maxContextualTokens' => 200000, // Shutdown: October 23, 2026. 'tags' => ['core', 'chat', 'o1-model', 'reasoning', 'responses', 'mcp', 'deprecated'], 'tools' => ['web_search', 'image_generation', 'code_interpreter'] ], /* GPT Realtime 2 Voice model with GPT-5-class reasoning, stronger instruction following, and multilingual support. https://platform.openai.com/docs/models/gpt-realtime-2 */ [ 'model' => 'gpt-realtime-2', 'name' => 'GPT Realtime 2', 'family' => 'realtime', 'features' => ['core', 'realtime', 'functions'], 'price' => [ 'text' => [ 'in' => 4.00, 'cache' => 0.40, 'out' => 16.00, ], 'audio' => [ 'in' => 32.00, 'cache' => 0.40, 'out' => 64.00, ], 'image' => [ 'in' => 5.00, 'cache' => 0.50, ] ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 4096, 'maxContextualTokens' => 128000, 'finetune' => false, 'tags' => ['core', 'realtime', 'functions', 'vision', 'mcp'] ], /* GPT Realtime Production-ready speech-to-speech model with MCP, image input, and SIP support https://platform.openai.com/docs/models/gpt-realtime */ [ 'model' => 'gpt-realtime', 'name' => 'GPT Realtime', 'family' => 'realtime', 'features' => ['core', 'realtime', 'functions'], 'price' => [ 'text' => [ 'in' => 4.00, 'cache' => 0.40, 'out' => 16.00, ], 'audio' => [ 'in' => 32.00, 'cache' => 0.40, 'out' => 64.00, ], 'image' => [ 'in' => 5.00, 'cache' => 0.50, ] ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 4096, 'maxContextualTokens' => 128000, 'finetune' => false, 'tags' => ['core', 'realtime', 'functions', 'vision', 'mcp'] ], /* GPT Realtime Mini Cost-efficient version of GPT Realtime https://platform.openai.com/docs/models/gpt-realtime-mini */ [ 'model' => 'gpt-realtime-mini', 'name' => 'GPT Realtime Mini', 'family' => 'realtime', 'features' => ['core', 'realtime', 'functions'], 'price' => [ 'text' => [ 'in' => 0.60, 'cache' => 0.06, 'out' => 2.40, ], 'audio' => [ 'in' => 10.00, 'cache' => 0.06, 'out' => 20.00, ] ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 4096, 'maxContextualTokens' => 32000, 'finetune' => false, 'tags' => ['core', 'realtime', 'functions', 'vision', 'deprecated'] ], // TODO: gpt-realtime-translate and gpt-realtime-whisper are intentionally // not exposed yet. Both run on their own OpenAI endpoints // (/v1/realtime/translations/client_secrets and the realtime transcription // session) with a one-way streaming contract, no tools, no conversation, // and a different event prefix. They do not fit the chatbot session shape // in premium/realtime.php and would warrant their own "Live Translation" // and "Live Transcription" modes if a clear WordPress use case shows up. /* GPT Image OpenAI's image generation models (token-based pricing) https://platform.openai.com/docs/models/gpt-image-1 */ [ 'model' => 'gpt-image-2', 'name' => 'GPT Image 2', 'family' => 'gpt-image', 'features' => ['text-to-image'], 'resolutions' => [ [ 'name' => '1024x1024', 'label' => '1024x1024' ], [ 'name' => '1024x1536', 'label' => '1024x1536' ], [ 'name' => '1536x1024', 'label' => '1536x1024' ] ], 'qualities' => [ [ 'name' => 'auto', 'label' => 'Auto' ], [ 'name' => 'low', 'label' => 'Low' ], [ 'name' => 'medium', 'label' => 'Medium' ], [ 'name' => 'high', 'label' => 'High' ] ], 'type' => 'token', 'mode' => 'image', 'price' => [ 'in' => 8.00, 'out' => 30.00, 'cached' => 2.00 ], 'unit' => 1 / 1000000, 'finetune' => false, 'tags' => ['core', 'image', 'image-edit', 'responses'] ], [ 'model' => 'gpt-image-1.5', 'name' => 'GPT Image 1.5', 'family' => 'gpt-image', 'features' => ['text-to-image'], 'resolutions' => [ [ 'name' => '1024x1024', 'label' => '1024x1024' ], [ 'name' => '1024x1536', 'label' => '1024x1536' ], [ 'name' => '1536x1024', 'label' => '1536x1024' ] ], 'qualities' => [ [ 'name' => 'auto', 'label' => 'Auto' ], [ 'name' => 'low', 'label' => 'Low' ], [ 'name' => 'medium', 'label' => 'Medium' ], [ 'name' => 'high', 'label' => 'High' ] ], 'type' => 'token', 'mode' => 'image', 'price' => [ 'in' => 8.00, 'out' => 32.00, 'cached' => 2.00 ], 'unit' => 1 / 1000000, 'finetune' => false, 'tags' => ['core', 'image', 'image-edit', 'responses'] ], [ 'model' => 'gpt-image-1', 'name' => 'GPT Image 1', 'family' => 'gpt-image', 'features' => ['text-to-image'], 'resolutions' => [ [ 'name' => '1024x1024', 'label' => '1024x1024' ], [ 'name' => '1024x1536', 'label' => '1024x1536' ], [ 'name' => '1536x1024', 'label' => '1536x1024' ] ], 'qualities' => [ [ 'name' => 'auto', 'label' => 'Auto' ], [ 'name' => 'low', 'label' => 'Low' ], [ 'name' => 'medium', 'label' => 'Medium' ], [ 'name' => 'high', 'label' => 'High' ] ], 'type' => 'token', 'mode' => 'image', 'price' => [ 'in' => 10.00, 'out' => 40.00, 'cached' => 2.50 ], 'unit' => 1 / 1000000, 'finetune' => false, // Shutdown: October 23, 2026. 'tags' => ['core', 'image', 'image-edit', 'responses', 'deprecated'] ], [ 'model' => 'gpt-image-1-mini', 'name' => 'GPT Image 1 Mini', 'family' => 'gpt-image', 'features' => ['text-to-image'], 'resolutions' => [ [ 'name' => '1024x1024', 'label' => '1024x1024' ], [ 'name' => '1024x1536', 'label' => '1024x1536' ], [ 'name' => '1536x1024', 'label' => '1536x1024' ] ], 'qualities' => [ [ 'name' => 'auto', 'label' => 'Auto' ], [ 'name' => 'low', 'label' => 'Low' ], [ 'name' => 'medium', 'label' => 'Medium' ], [ 'name' => 'high', 'label' => 'High' ] ], 'type' => 'token', 'mode' => 'image', 'price' => [ 'in' => 2.50, 'out' => 8.00, 'cached' => 0.25 ], 'unit' => 1 / 1000000, 'finetune' => false, 'tags' => ['core', 'image', 'image-edit', 'responses'] ], /* Sora 2 Flagship video generation with synced audio https://platform.openai.com/docs/models/sora-2 */ [ 'model' => 'sora-2', 'name' => 'Sora 2', 'family' => 'sora', 'features' => ['text-to-video'], 'resolutions' => [ [ 'name' => '720x1280', 'label' => 'Portrait (720x1280)', 'price' => 0.10 ], [ 'name' => '1280x720', 'label' => 'Landscape (1280x720)', 'price' => 0.10 ] ], 'durations' => [ 4, 8, 12 ], 'type' => 'video', 'unit' => 'second', 'finetune' => false, // Shutdown: September 24, 2026. 'tags' => ['core', 'video', 'deprecated'] ], [ 'model' => 'sora-2-pro', 'name' => 'Sora 2 Pro', 'family' => 'sora', 'features' => ['text-to-video'], 'resolutions' => [ [ 'name' => '720x1280', 'label' => 'Portrait (720x1280)', 'price' => 0.30 ], [ 'name' => '1280x720', 'label' => 'Landscape (1280x720)', 'price' => 0.30 ], [ 'name' => '1024x1792', 'label' => 'Portrait High (1024x1792)', 'price' => 0.50 ], [ 'name' => '1792x1024', 'label' => 'Landscape High (1792x1024)', 'price' => 0.50 ] ], 'durations' => [ 4, 8, 12 ], 'type' => 'video', 'unit' => 'second', 'finetune' => false, // Shutdown: September 24, 2026. 'tags' => ['core', 'video', 'deprecated'] ], // Embedding models: // OpenAI v3 models support Matryoshka embeddings (MRL) allowing dimension truncation // while preserving semantic meaning. The dimensions array lists native + recommended sizes. // See: https://huggingface.co/blog/matryoshka [ 'model' => 'text-embedding-3-small', 'name' => 'Embedding 3-Small', 'family' => 'text-embedding', 'features' => ['embedding'], 'price' => 0.02, 'type' => 'token', 'unit' => 1 / 1000000, 'finetune' => false, 'dimensions' => 1536, // Native output dimension 'tags' => ['core', 'embedding', 'matryoshka'], ], [ 'model' => 'text-embedding-3-large', 'name' => 'Embedding 3-Large', 'family' => 'text-embedding', 'features' => ['embedding'], 'price' => 0.13, 'type' => 'token', 'unit' => 1 / 1000000, 'finetune' => false, 'dimensions' => 3072, // Native output dimension 'tags' => ['core', 'embedding', 'matryoshka'], ], // Ada-002 is a legacy model with fixed dimensions (no truncation support) [ 'model' => 'text-embedding-ada-002', 'name' => 'Embedding Ada-002', 'family' => 'text-embedding', 'features' => ['embedding'], 'price' => 0.10, 'type' => 'token', 'unit' => 1 / 1000000, 'finetune' => false, 'dimensions' => 1536, // Fixed dimension (no matryoshka support) 'tags' => ['core', 'embedding'], ], // Audio Models: [ 'model' => 'gpt-4o-transcribe', 'name' => 'GPT-4o Transcribe', 'family' => 'whisper', 'features' => ['speech-to-text'], 'price' => 0.006, 'type' => 'second', 'unit' => 1, 'finetune' => false, 'tags' => ['core', 'audio', 'deprecated'], ], [ 'model' => 'gpt-4o-mini-transcribe', 'name' => 'GPT-4o Mini Transcribe', 'family' => 'whisper', 'features' => ['speech-to-text'], 'price' => 0.003, 'type' => 'second', 'unit' => 1, 'finetune' => false, 'tags' => ['core', 'audio', 'deprecated'], ], [ 'model' => 'whisper-1', 'name' => 'Whisper', 'family' => 'whisper', 'features' => ['speech-to-text'], 'price' => 0.006, 'type' => 'second', 'unit' => 1, 'finetune' => false, 'tags' => ['core', 'audio'], ], ] ); define( 'MWAI_ANTHROPIC_MODELS', [ [ 'model' => 'claude-opus-4-8', 'name' => 'Claude Opus 4.8', 'family' => 'claude-4', 'features' => ['completion'], 'price' => [ 'in' => 5.00, 'out' => 25.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 128000, 'maxContextualTokens' => 1000000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp', 'no-temperature', 'latest'], 'tools' => ['code_interpreter', 'thinking'] ], [ 'model' => 'claude-opus-4-7', 'name' => 'Claude Opus 4.7', 'family' => 'claude-4', 'features' => ['completion'], 'price' => [ 'in' => 5.00, 'out' => 25.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 128000, 'maxContextualTokens' => 1000000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp', 'no-temperature'], 'tools' => ['code_interpreter', 'thinking'] ], [ 'model' => 'claude-opus-4-6', 'name' => 'Claude Opus 4.6', 'family' => 'claude-4', 'features' => ['completion'], 'price' => [ 'in' => 5.00, 'out' => 25.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 128000, 'maxContextualTokens' => 1000000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'], 'tools' => ['code_interpreter', 'thinking'] ], [ 'model' => 'claude-opus-4-5', 'name' => 'Claude Opus 4.5', 'family' => 'claude-4', 'features' => ['completion'], 'price' => [ 'in' => 5.00, 'out' => 25.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 64000, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'], 'tools' => ['code_interpreter', 'thinking'] ], [ 'model' => 'claude-sonnet-4-6', 'name' => 'Claude Sonnet 4.6', 'family' => 'claude-4', 'features' => ['completion'], 'price' => [ 'in' => 3.00, 'out' => 15.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 64000, 'maxContextualTokens' => 1000000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp', 'latest'], 'tools' => ['code_interpreter', 'thinking'] ], [ 'model' => 'claude-sonnet-4-5-20250929', 'name' => 'Claude Sonnet 4.5 (2025/09/29)', 'family' => 'claude-4', 'features' => ['completion'], 'price' => [ 'in' => 3.00, 'out' => 15.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 64000, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'], 'tools' => ['code_interpreter', 'thinking'] ], [ 'model' => 'claude-sonnet-4-5', 'name' => 'Claude Sonnet 4.5', 'family' => 'claude-4', 'features' => ['completion'], 'price' => [ 'in' => 3.00, 'out' => 15.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 64000, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'], 'tools' => ['code_interpreter', 'thinking'] ], [ 'model' => 'claude-opus-4-1-20250805', 'name' => 'Claude Opus 4.1 (2025/08/05)', 'family' => 'claude-4', 'features' => ['completion'], 'price' => [ 'in' => 15.00, 'out' => 75.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 32000, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'], 'tools' => ['code_interpreter', 'thinking'] ], [ 'model' => 'claude-opus-4-1', 'name' => 'Claude Opus 4.1', 'family' => 'claude-4', 'features' => ['completion'], 'price' => [ 'in' => 15.00, 'out' => 75.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 32000, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'], 'tools' => ['code_interpreter', 'thinking'] ], [ 'model' => 'claude-opus-4-20250514', 'name' => 'Claude Opus 4 (2025/05/14)', 'family' => 'claude-4', 'features' => ['completion'], 'price' => [ 'in' => 15.00, 'out' => 75.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 32000, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp', 'deprecated'], 'tools' => ['code_interpreter', 'thinking'] ], [ 'model' => 'claude-opus-4-0', 'name' => 'Claude Opus 4', 'family' => 'claude-4', 'features' => ['completion'], 'price' => [ 'in' => 15.00, 'out' => 75.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 32000, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp', 'latest'], 'tools' => ['code_interpreter', 'thinking'] ], [ 'model' => 'claude-sonnet-4-20250514', 'name' => 'Claude Sonnet 4 (2025/05/14)', 'family' => 'claude-4', 'features' => ['completion'], 'price' => [ 'in' => 3.00, 'out' => 15.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 64000, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp', 'deprecated'], 'tools' => ['code_interpreter', 'thinking'] ], [ 'model' => 'claude-sonnet-4-0', 'name' => 'Claude Sonnet 4', 'family' => 'claude-4', 'features' => ['completion'], 'price' => [ 'in' => 3.00, 'out' => 15.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 64000, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp', 'latest'], 'tools' => ['code_interpreter', 'thinking'] ], [ 'model' => 'claude-haiku-4-5-20251001', 'name' => 'Claude-4.5 Haiku (2025/10/01)', 'family' => 'claude-4', 'features' => ['completion'], 'price' => [ 'in' => 1.00, 'out' => 5.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 64000, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'], 'tools' => ['code_interpreter', 'thinking'] ], [ 'model' => 'claude-haiku-4-5', 'name' => 'Claude-4.5 Haiku', 'family' => 'claude-4', 'features' => ['completion'], 'price' => [ 'in' => 1.00, 'out' => 5.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 64000, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp', 'latest'], 'tools' => ['code_interpreter', 'thinking'] ], [ 'model' => 'claude-3-7-sonnet-latest', 'name' => 'Claude-3.7 Sonnet', 'family' => 'claude-3', 'features' => ['completion'], 'price' => [ 'in' => 3.00, 'out' => 15.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 64000, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'reasoning', 'mcp'], 'tools' => ['code_interpreter', 'thinking'] ], [ 'model' => 'claude-3-5-sonnet-latest', 'name' => 'Claude-3.5 Sonnet', 'family' => 'claude-3', 'features' => ['completion'], 'price' => [ 'in' => 3.00, 'out' => 15.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 4096, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'mcp'] ], [ 'model' => 'claude-3-5-sonnet-20241022', 'name' => 'Claude-3.5 Sonnet (2024/10/22)', 'family' => 'claude-3', 'features' => ['completion'], 'price' => [ 'in' => 3.00, 'out' => 15.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 4096, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'mcp'] ], [ 'model' => 'claude-3-5-sonnet-20240620', 'name' => 'Claude-3.5 Sonnet (2024/06/20)', 'family' => 'claude-3', 'features' => ['completion'], 'price' => [ 'in' => 3.00, 'out' => 15.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 4096, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'mcp'] ], [ 'model' => 'claude-3-sonnet-20240229', 'name' => 'Claude-3 Sonnet (2024/02/29)', 'family' => 'claude-3', 'features' => ['completion'], 'price' => [ 'in' => 3.00, 'out' => 15.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 4096, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'deprecated'] ], [ // Deprecated: Anthropic retired Claude 3 Opus on January 5, 2026. 'model' => 'claude-3-opus-latest', 'name' => 'Claude-3 Opus (Latest)', 'family' => 'claude-3', 'features' => ['completion'], 'price' => [ 'in' => 15.00, 'out' => 75.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 4096, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'deprecated'] ], [ // Deprecated: Anthropic retired Claude 3 Opus on January 5, 2026. 'model' => 'claude-3-opus-20240229', 'name' => 'Claude-3 Opus (2024/02/29)', 'family' => 'claude-3', 'features' => ['completion'], 'price' => [ 'in' => 15.00, 'out' => 75.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 4096, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions', 'deprecated'] ], [ 'model' => 'claude-3-5-haiku-20241022', 'name' => 'Claude-3.5 Haiku (2024/10/22)', 'family' => 'claude-3', 'features' => ['completion'], 'price' => [ 'in' => 0.80, 'out' => 4.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 8192, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files'], 'tools' => ['code_interpreter'] ], [ 'model' => 'claude-3-5-haiku-latest', 'name' => 'Claude-3.5 Haiku', 'family' => 'claude-3', 'features' => ['completion'], 'price' => [ 'in' => 0.80, 'out' => 4.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 8192, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'latest'], 'tools' => ['code_interpreter'] ], [ 'model' => 'claude-3-haiku-20240307', 'name' => 'Claude-3 Haiku (2024/03/07)', 'family' => 'claude-3', 'features' => ['completion'], 'price' => [ 'in' => 0.25, 'out' => 1.25, ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 4096, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat', 'vision', 'files', 'functions'] ] ] ); define( 'MWAI_PERPLEXITY_MODELS', [ [ 'model' => 'sonar-pro', 'name' => 'Sonar Pro', 'family' => 'sonar', 'features' => ['completion'], 'price' => [ 'in' => 3.00, 'out' => 15.00, 'search' => 5.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'searchUnit' => 1 / 1000, 'maxCompletionTokens' => 8192, 'maxContextualTokens' => 200000, 'finetune' => false, 'tags' => ['core', 'chat'], ], [ 'model' => 'sonar', 'name' => 'Sonar', 'family' => 'sonar', 'features' => ['completion'], 'price' => [ 'in' => 1.00, 'out' => 1.00, 'search' => 5.00, ], 'type' => 'token', 'unit' => 1 / 1000000, 'searchUnit' => 1 / 1000, 'maxCompletionTokens' => 4096, 'maxContextualTokens' => 127000, 'finetune' => false, 'tags' => ['core', 'chat'], ], ] ); // Mistral AI Models // Models are fetched dynamically from the Mistral API define( 'MWAI_MISTRAL_MODELS', [] ); // xAI (Grok) Models // Models are fetched dynamically from the xAI API. The fallback list below mirrors the // chat-capable models that xAI publishes on https://docs.x.ai/docs/models, used only when // the dynamic fetch fails (e.g. invalid key during preflight). define( 'MWAI_XAI_MODELS', [ [ 'model' => 'grok-4', 'name' => 'Grok 4', 'family' => 'grok', 'features' => [ 'completion', 'functions' ], 'price' => [ 'in' => 3.00, 'out' => 15.00 ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 16384, 'maxContextualTokens' => 256000, 'tags' => [ 'core', 'chat', 'functions', 'vision', 'reasoning' ], ], [ 'model' => 'grok-4-fast', 'name' => 'Grok 4 Fast', 'family' => 'grok', 'features' => [ 'completion', 'functions' ], 'price' => [ 'in' => 0.20, 'out' => 0.50 ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 16384, 'maxContextualTokens' => 256000, 'tags' => [ 'core', 'chat', 'functions', 'vision', 'reasoning' ], ], [ 'model' => 'grok-code-fast-1', 'name' => 'Grok Code Fast', 'family' => 'grok', 'features' => [ 'completion', 'functions' ], 'price' => [ 'in' => 0.20, 'out' => 1.50 ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 16384, 'maxContextualTokens' => 256000, 'tags' => [ 'core', 'chat', 'functions' ], ], [ 'model' => 'grok-3-mini', 'name' => 'Grok 3 Mini', 'family' => 'grok', 'features' => [ 'completion', 'functions' ], 'price' => [ 'in' => 0.30, 'out' => 0.50 ], 'type' => 'token', 'unit' => 1 / 1000000, 'maxCompletionTokens' => 16384, 'maxContextualTokens' => 131072, 'tags' => [ 'core', 'chat', 'functions', 'reasoning' ], ], ] ); PK �{.]�bj0 0 init.phpnu �[��� <?php require_once( MWAI_PATH . '/constants/engines.php' ); require_once( MWAI_PATH . '/constants/models.php' ); define( 'MWAI_CHATBOT_DEFAULT_PARAMS', [ // UI Parameters 'aiName' => 'AI: ', 'userName' => 'User: ', 'guestName' => 'Guest: ', 'textSend' => 'Send', 'textClear' => 'Clear', 'textInputPlaceholder' => 'Type your message...', 'textInputMaxLength' => 512, 'textCompliance' => '', 'startSentence' => 'Hi! How can I help you?', 'themeId' => 'chatgpt', 'window' => false, 'icon' => '', 'iconText' => '', 'iconTextDelay' => 1, 'iconAlt' => 'AI Engine Chatbot', 'iconPosition' => 'bottom-right', 'centerOpen' => false, 'width' => '', 'openDelay' => '', 'iconBubble' => false, 'windowAnimation' => 'zoom', 'fullscreen' => false, 'copyButton' => false, 'pdfButton' => false, 'headerSubtitle' => 'Discuss with', 'localMemory' => true, 'multiUpload' => false, // UI Builder Parameters 'containerType' => 'standard', 'headerType' => 'standard', 'messagesType' => 'standard', 'inputType' => 'standard', 'footerType' => 'standard', // Chatbot System Parameters 'botId' => null, 'instructions' => 'Converse as if you were an AI assistant. Be friendly, creative.', 'scope' => 'chatbot', 'mode' => 'chat', 'contentAware' => false, 'embeddingsEnvId' => '', // AI Parameters 'model' => MWAI_FALLBACK_MODEL, 'temperature' => 0.8, 'maxMessages' => 15, 'maxTokens' => 4096, 'maxResults' => 1, 'apiKey' => null, 'voice' => null, // Orchestration 'functions' => [], 'mcpServers' => [], // Advanced 'historyStrategy' => null, // Cross-Site 'crossSite' => [ 'enabled' => false, 'allowedDomains' => [] ] ] ); define( 'MWAI_LANGUAGES', [ 'en' => 'English', 'de' => 'German', 'fr' => 'French', 'es' => 'Spanish', 'it' => 'Italian', 'zh' => 'Chinese', 'ja' => 'Japanese', 'pt' => 'Portuguese', //'ru' => 'Russian', ] ); define( 'MWAI_LIMITS', [ 'enabled' => true, 'guests' => [ 'credits' => 3, 'creditType' => 'queries', 'timeFrame' => 'day', 'isAbsolute' => false, 'overLimitMessage' => 'You have reached the limit (check the Insights Tab > Limits > Guests).', ], 'users' => [ 'credits' => 10, 'creditType' => 'price', 'timeFrame' => 'month', 'isAbsolute' => false, 'overLimitMessage' => 'You have reached the limit (check the Insights Tab > Limits > Users).', 'ignoredUsers' => 'administrator,editor', ], 'system' => [ 'credits' => 20, 'creditType' => 'price', 'timeFrame' => 'month', 'isAbsolute' => false, 'overLimitMessage' => 'Our chatbot went to sleep. Please try again later.', 'ignoredUsers' => '', ], ] ); define( 'MWAI_OPTIONS', [ 'module_addons' => true, 'module_suggestions' => true, 'module_chatbots' => true, 'module_search' => false, 'search_frontend_method' => 'wordpress', 'search_frontend_env_id' => null, 'search_website_context' => 'This is a website with useful information and content.', 'module_library_search' => false, 'library_search_env_id' => null, 'module_forms' => false, 'forms_editor' => true, 'module_blocks' => false, 'module_assistant' => true, 'module_playground' => true, 'module_generator_content' => true, 'module_generator_images' => true, 'module_generator_videos' => false, 'module_moderation' => false, 'module_statistics' => false, 'statistics_retention_days' => 'Never', // TODO: Remove module_finetunes after 2027-02 (OpenAI ends fine-tune job creation on 2027-01-06). 'module_finetunes' => false, 'module_embeddings' => false, 'module_transcription' => false, 'module_advisor' => false, 'module_orchestration' => false, 'module_mcp' => false, 'speech_recognition' => false, 'speech_synthesis' => false, 'chatbot_gdpr_consent' => false, '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.).', 'chatbot_gdpr_button' => 'I understand', 'chatbot_typewriter' => false, 'chatbot_discussions' => false, 'chatbot_discussions_titling' => true, 'chatbot_discussions_paging' => 10, 'chatbot_discussions_refresh_interval' => 5, 'chatbot_discussions_retention_days' => 90, 'chatbot_discussions_metadata_enabled' => true, 'chatbot_discussions_metadata_start_date' => true, 'chatbot_discussions_metadata_last_update' => true, 'chatbot_discussions_metadata_message_count' => true, 'chatbot_moderation' => false, 'syntax_highlight' => false, 'event_logs' => false, 'privacy_first' => false, 'limits' => MWAI_LIMITS, // Settings for Images 'image_local_upload' => 'uploads', 'image_remote_upload' => 'data', 'image_expires' => 1 * HOUR_IN_SECONDS, 'ai_models' => [], 'ai_models_usage' => [], 'ai_streaming' => true, 'ai_default_env' => null, 'ai_default_model' => MWAI_FALLBACK_MODEL, 'ai_envs' => [ [ 'name' => 'OpenAI', 'type' => 'openai', 'apikey' => '', // TODO: Drop the four finetunes* keys after 2027-02 (OpenAI ends fine-tune job creation on 2027-01-06). 'finetunes' => [], 'finetunes_deleted' => [], 'legacy_finetunes' => [], 'legacy_finetunes_deleted' => [], ], ], 'mcp_envs' => [], 'ai_fast_default_env' => null, 'ai_fast_default_model' => MWAI_FALLBACK_MODEL_FAST, 'ai_embeddings_default_env' => null, 'ai_embeddings_default_model' => 'text-embedding-3-small', 'ai_embeddings_default_dimensions' => 1536, 'ai_vision_default_env' => null, 'ai_vision_default_model' => 'gpt-5-mini', 'ai_images_default_env' => null, 'ai_images_default_model' => 'gpt-image-1.5', 'ai_images_default_quality' => null, 'ai_audio_default_env' => null, 'ai_audio_default_model' => 'whisper-1', 'ai_json_default_env' => null, 'ai_json_default_model' => 'gpt-5-mini', 'embeddings_default_env' => null, 'embeddings_envs' => [ [ 'name' => 'OpenAI Vector Store', 'type' => 'openai-vector-store', 'openai_env_id' => null, 'store_id' => '', ] ], 'embeddings' => [ 'rewriteContent' => true, '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", 'forceRecreate' => false, 'syncPosts' => false, 'syncPostsEnvId' => null, 'syncPostTypes' => ['post', 'page', 'product'], 'syncPostStatus' => ['publish'], 'syncPostCategories' => [], ], 'public_api' => false, 'dev_mode' => false, 'debug_mode' => false, 'server_debug_mode' => false, 'mcp_debug_mode' => false, 'mcp_role' => 'admin', 'mcp_log_calls' => true, 'mcp_log_payloads' => false, 'queries_debug_mode' => false, 'logs_path' => null, 'resolve_shortcodes' => false, 'context_max_length' => 16384, 'banned_words' => [], 'ignore_word_boundaries' => false, 'banned_ips' => [], 'languages' => MWAI_LANGUAGES, 'custom_languages' => [ 'English (en)', 'German (de)', 'French (fr)', 'Spanish (es)', 'Italian (it)', 'Chinese (zh)', 'Japanese (ja)', 'Portuguese (pt)' ], 'clean_uninstall' => false, // ADMIN UI 'intro_message' => true, 'chatbot_select' => 'tabs' ] ); define( 'MWAI_ALL_LANGUAGES', [ 'aa' => 'Afar', 'ab' => 'Abkhazian', 'af' => 'Afrikaans', 'ak' => 'Akan', 'sq' => 'Albanian', 'am' => 'Amharic', 'ar' => 'Arabic', 'an' => 'Aragonese', 'hy' => 'Armenian', 'as' => 'Assamese', 'av' => 'Avaric', 'ae' => 'Avestan', 'ay' => 'Aymara', 'az' => 'Azerbaijani', 'ba' => 'Bashkir', 'bm' => 'Bambara', 'eu' => 'Basque', 'be' => 'Belarusian', 'bn' => 'Bengali', 'bh' => 'Bihari', 'bi' => 'Bislama', 'bs' => 'Bosnian', 'br' => 'Breton', 'bg' => 'Bulgarian', 'my' => 'Burmese', 'ca' => 'Catalan; Valencian', 'ch' => 'Chamorro', 'ce' => 'Chechen', 'zh' => 'Chinese', 'cu' => 'Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic', 'cv' => 'Chuvash', 'kw' => 'Cornish', 'co' => 'Corsican', 'cr' => 'Cree', 'cs' => 'Czech', 'da' => 'Danish', 'dv' => 'Divehi; Dhivehi; Maldivian', 'nl' => 'Dutch; Flemish', 'dz' => 'Dzongkha', 'en' => 'English', 'eo' => 'Esperanto', 'et' => 'Estonian', 'ee' => 'Ewe', 'fo' => 'Faroese', 'fj' => 'Fijjian', 'fi' => 'Finnish', 'fr' => 'French', 'fy' => 'Western Frisian', 'ff' => 'Fulah', 'ka' => 'Georgian', 'de' => 'German', 'gd' => 'Gaelic; Scottish Gaelic', 'ga' => 'Irish', 'gl' => 'Galician', 'gv' => 'Manx', 'el' => 'Greek, Modern', 'gn' => 'Guarani', 'gu' => 'Gujarati', 'ht' => 'Haitian; Haitian Creole', 'ha' => 'Hausa', 'he' => 'Hebrew', 'hz' => 'Herero', 'hi' => 'Hindi', 'ho' => 'Hiri Motu', 'hu' => 'Hungarian', 'ig' => 'Igbo', 'is' => 'Icelandic', 'io' => 'Ido', 'ii' => 'Sichuan Yi', 'iu' => 'Inuktitut', 'ie' => 'Interlingue', 'ia' => 'Interlingua (International Auxiliary Language Association)', 'id' => 'Indonesian', 'ik' => 'Inupiaq', 'it' => 'Italian', 'jv' => 'Javanese', 'ja' => 'Japanese', 'kl' => 'Kalaallisut; Greenlandic', 'kn' => 'Kannada', 'ks' => 'Kashmiri', 'kr' => 'Kanuri', 'kk' => 'Kazakh', 'km' => 'Central Khmer', 'ki' => 'Kikuyu; Gikuyu', 'rw' => 'Kinyarwanda', 'ky' => 'Kirghiz; Kyrgyz', 'kv' => 'Komi', 'kg' => 'Kongo', 'ko' => 'Korean', 'kj' => 'Kuanyama; Kwanyama', 'ku' => 'Kurdish', 'lo' => 'Lao', 'la' => 'Latin', 'lv' => 'Latvian', 'li' => 'Limburgan; Limburger; Limburgish', 'ln' => 'Lingala', 'lt' => 'Lithuanian', 'lb' => 'Luxembourgish; Letzeburgesch', 'lu' => 'Luba-Katanga', 'lg' => 'Ganda', 'mk' => 'Macedonian', 'mh' => 'Marshallese', 'ml' => 'Malayalam', 'mi' => 'Maori', 'mr' => 'Marathi', 'ms' => 'Malay', 'mg' => 'Malagasy', 'mt' => 'Maltese', 'mo' => 'Moldavian', 'mn' => 'Mongolian', 'na' => 'Nauru', 'nv' => 'Navajo; Navaho', 'nr' => 'Ndebele, South; South Ndebele', 'nd' => 'Ndebele, North; North Ndebele', 'ng' => 'Ndonga', 'ne' => 'Nepali', 'nn' => 'Norwegian Nynorsk; Nynorsk, Norwegian', 'nb' => 'Bokmål, Norwegian, Norwegian Bokmål', 'no' => 'Norwegian', 'ny' => 'Chichewa; Chewa; Nyanja', 'oc' => 'Occitan, Provençal', 'oj' => 'Ojibwa', 'or' => 'Oriya', 'om' => 'Oromo', 'os' => 'Ossetian; Ossetic', 'pa' => 'Panjabi; Punjabi', 'fa' => 'Persian', 'pi' => 'Pali', 'pl' => 'Polish', 'pt' => 'Portuguese', 'ps' => 'Pushto', 'qu' => 'Quechua', 'rm' => 'Romansh', 'ro' => 'Romanian', 'rn' => 'Rundi', 'ru' => 'Russian', 'sg' => 'Sango', 'sa' => 'Sanskrit', 'sr' => 'Serbian', 'hr' => 'Croatian', 'si' => 'Sinhala; Sinhalese', 'sk' => 'Slovak', 'sl' => 'Slovenian', 'se' => 'Northern Sami', 'sm' => 'Samoan', 'sn' => 'Shona', 'sd' => 'Sindhi', 'so' => 'Somali', 'st' => 'Sotho, Southern', 'es' => 'Spanish; Castilian', 'sc' => 'Sardinian', 'ss' => 'Swati', 'su' => 'Sundanese', 'sw' => 'Swahili', 'sv' => 'Swedish', 'ty' => 'Tahitian', 'ta' => 'Tamil', 'tt' => 'Tatar', 'te' => 'Telugu', 'tg' => 'Tajik', 'tl' => 'Tagalog', 'th' => 'Thai', 'bo' => 'Tibetan', 'ti' => 'Tigrinya', 'to' => 'Tonga (Tonga Islands)', 'tn' => 'Tswana', 'ts' => 'Tsonga', 'tk' => 'Turkmen', 'tr' => 'Turkish', 'tw' => 'Twi', 'ug' => 'Uighur; Uyghur', 'uk' => 'Ukrainian', 'ur' => 'Urdu', 'uz' => 'Uzbek', 've' => 'Venda', 'vi' => 'Vietnamese', 'vo' => 'Volapük', 'cy' => 'Welsh', 'wa' => 'Walloon', 'wo' => 'Wolof', 'xh' => 'Xhosa', 'yi' => 'Yiddish', 'yo' => 'Yoruba', 'za' => 'Zhuang; Chuang', 'zu' => 'Zulu', ] ); PK �{.]�㐫� � types.phpnu �[��� <?php // Define streaming message types define( 'MWAI_STREAM_TYPES', [ // Content types 'CONTENT' => 'content', // Regular assistant message content 'THINKING' => 'thinking', // AI reasoning/thinking process 'CODE' => 'code', // Code block content // Tool/Function types 'TOOL_CALL' => 'tool_call', // Starting a tool/function call 'TOOL_ARGS' => 'tool_args', // Tool arguments (usually hidden) 'TOOL_RESULT' => 'tool_result', // Tool execution result 'MCP_DISCOVERY' => 'mcp_discovery', // MCP tools being discovered // Search/Generation types 'WEB_SEARCH' => 'web_search', // Web search in progress 'FILE_SEARCH' => 'file_search', // File search in progress 'IMAGE_GEN' => 'image_gen', // Image generation in progress 'EMBEDDINGS' => 'embeddings', // Embeddings operation // System types 'DEBUG' => 'debug', // Debug information 'STATUS' => 'status', // Status updates (queued, processing, etc.) 'ERROR' => 'error', // Error messages 'WARNING' => 'warning', // Warning messages 'TRANSCRIPT' => 'transcript', // Audio transcriptions // Control types 'START' => 'start', // Stream started 'END' => 'end', // Stream completed 'HEARTBEAT' => 'heartbeat', // Keep-alive ping ] ); // Message visibility settings define( 'MWAI_STREAM_VISIBILITY', [ 'VISIBLE' => 'visible', // Show to user 'HIDDEN' => 'hidden', // Hide from user (debug only) 'COLLAPSED' => 'collapsed', // Show collapsed/summary view ] ); PK �{.]$X��� � engines.phpnu �[��� PK �{.]Uj�͜� �� 5 models.phpnu �[��� PK �{.]�bj0 0 � init.phpnu �[��� PK �{.]�㐫� � a� types.phpnu �[��� PK & G�
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings