props; $apiOptions = WaicUtils::getArrayValue($props, 'options', array(), 2); $apiVariations = WaicUtils::getArrayValue($props, 'variations', array(), 2); $lang = get_option('WPLANG'); $module = $this->getModule(); $workspace = WaicFrame::_()->getModule('workspace'); $eProducts = WaicUtils::getArrayValue($props, 'exist_products', 0, 1); $ePosts = WaicUtils::getArrayValue($props, 'exist_posts', 0, 1); ?>
__('Chat bot', 'ai-copilot-content-generator'), )); ?>
WaicUtils::getArrayValue($apiVariations, 'language', array(), 2), 'value' => empty($lang) ? 'en' : $lang, )); ?>
$aiAvatar)); ?>
$aiRoles[$defRole], )); ?>
0, 'hide_empty' => 0, 'orderby' => 'name', 'order' => 'asc', ); ?>
array( '' => __('All products', 'ai-copilot-content-generator'), 'cat' => __('Specific categories', 'ai-copilot-content-generator'), ), )); ?>
$workspace->getTaxonomyHierarchy('product_cat', $args), 'no_chosen' => 1, 'class' => 'waic-multiselect', )); ?>
array( '' => __('All posts', 'ai-copilot-content-generator'), 'cat' => __('Specific categories', 'ai-copilot-content-generator'), ), )); ?>
$workspace->getTaxonomyHierarchy('category', $args), 'no_chosen' => 1, 'class' => 'waic-multiselect', )); ?>
$f) { $aiKeys[$e] = WaicUtils::getArrayValue($apiOptions, $f); } $aiModel = WaicUtils::getArrayValue($apiOptions, $modelField); $connected = !empty($aiKeys[$aiEngine]); ?>
$engineName) { ?>
getModel()->maskApiKey($aiKeys[$aiEngine])); ?>
'class="waic-api-key" placeholder="' . esc_attr('Paste your API key here', 'ai-copilot-content-generator') . '"', )); ?>
WaicUtils::getArrayValue($aiModels, $aiEngine), 'value' => $aiModel, 'attrs' => 'id="waicAIModel"', )); ?>
getModule('training'); $emEngine = 'open-ai'; $embedVector = 'wpvector'; $embedModel = $trainModule->getModel('embeddings'); $embedEngines = $embedModel->getEmbedEngines(); $emModels = $embedModel->getEmbedModels(null, ''); $embedVectors = $embedModel->getDbVectors(); ?>
$engineName) { ?>
WaicUtils::getArrayValue($emModels, $emEngine), 'attrs' => 'id="waicEmbedModel"', )); ?>
$vectorName) { ?> $embedVectors, 'value' => $embedVector, 'attrs' => 'class="wbw-hidden"', )); ?>
'placeholder="API Key"', )); ?>
'placeholder="Index HOST"', )); ?>
'placeholder="Namespace"', )); ?>
'placeholder="API Key"', )); ?>
'placeholder="API URL"', )); ?>
'placeholder="Collection Name"', )); ?>
getModel()->getColorSchemes(true); $scheme = '#2D3E50'; foreach ($schemes as $color) { ?>
$scheme, 'attrs' => 'id="waicSchemeColor"' )); ?>
getModel()->getDisplayPages(); ?>
array( 'all' => __('All pages', 'ai-copilot-content-generator'), 'specific' => __('Specific pages', 'ai-copilot-content-generator'), ), )); ?>
$pages, 'no_chosen' => 1, 'class' => 'waic-multiselect', )); ?>
array( 'none' => __('Don\'t hide anywhere', 'ai-copilot-content-generator'), 'specific' => __('Specific pages', 'ai-copilot-content-generator'), ), )); ?>
$pages, 'no_chosen' => 1, 'class' => 'waic-multiselect', )); ?>
0%