* @package index * @link https://www.zentao.net */ ?> config->xuanxuan->turnon) && $this->config->xuanxuan->turnon && $this->loadModel('im') && $this->im->getXxdStatus() == 'online'; $isAIConfigured = $this->loadModel('ai')->isModelConfigured(); $hasAIChatPriv = commonModel::hasPriv('ai', 'chat'); js::set('isXuanAvailable', $isXuanAvailable); js::set('isAIConfigured', $isAIConfigured); js::set('hasAIChatPriv', $hasAIChatPriv); ?>
index->chat->unconfiguredFormat, $lang->index->chat->chat, (common::hasPriv('setting', 'xuanxuan') ? sprintf($lang->index->chat->goConfigureFormat, helper::createLink('setting', 'xuanxuan'), $lang->index->chat->chat) : $lang->index->chat->contactAdminForHelp)); ?>
index->chat->unconfiguredFormat, $lang->index->chat->ai, (common::hasPriv('ai', 'models') ? sprintf($lang->index->chat->goConfigureFormat, helper::createLink('ai', 'models') . '#app=admin', $lang->index->chat->ai) : $lang->index->chat->contactAdminForHelp)); ?> index->chat->unauthorized; ?>
index->chat->reloadTip; ?>