PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 5.4.2
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v5.4.2
8.7.7 8.7.6 8.7.5 8.7.4 8.7.3 8.7.2 8.7.1 8.7.0 8.6.9 8.6.8 8.6.7 8.6.6 8.6.5 8.6.4 8.6.2 8.6.1 8.6.0 8.5.9 8.5.8 8.5.7 8.5.6 8.5.5 8.5.4 8.5.3 8.5.2 All 533 releases
chatbot / includes / openai / admin / assistant.php

assistant.php in WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services 5.4.2, at includes/openai/admin/assistant.php

40 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 global $wpchatbot_pro_professional_init,$wpchatbot_pro_master_init;
3 if((isset($wpchatbot_pro_master_init) && $wpchatbot_pro_master_init->is_valid()) || (isset($wpchatbot_pro_professional_init) && $wpchatbot_pro_professional_init->is_valid()) || (function_exists('get_openaiaddon_valid_license') && get_openaiaddon_valid_license())){
4 ?>
5 <div class="<?php esc_attr_e( 'row g-0','wpbot');?>">
6 <div class="<?php esc_attr_e( 'col-sm-10','wpbot');?>">
7 <div class="<?php esc_attr_e( 'form-check form-switch my-4','wpbot');?>">
8 <input class="<?php esc_attr_e( 'form-check-input','wpbot');?>" type="checkbox" <?php echo (get_option( 'is_asst_enabled') == 1) ? esc_attr( 'checked','wpbot') :'';?> role="switch" value="" id="<?php esc_attr_e( 'is_assistant_enabled','wpbot'); ?>">
9 <label class="<?php esc_attr_e( 'form-check-label','wpbot');?>" for="<?php esc_attr_e( 'is_assistant_enabled','wpbot'); ?>">
10 <?php esc_html_e( 'Enable Open AI Assistants instead of fine tune','wpbot'); ?>
11 </label>
12 </div>
13 <div class="<?php esc_attr_e( 'mb-3','wpbot');?>">
14 <label for="<?php esc_attr_e( 'qcld_openai_assistants','wpbot');?>" class="<?php esc_attr_e( 'form-label','wpbot');?>"><?php esc_html_e( 'Assistants ID','wpbot');?></label>
15 <input id="<?php esc_attr_e( 'qcld_openai_assistants','wpbot');?>" class="<?php esc_attr_e( 'form-control','wpbot');?>" type="text" name="qcld_openai_assistants" value="<?php echo esc_attr( get_option( 'qcld_openai_assistants')); ?>">
16 <label><small><?php esc_html_e( 'Copy your Assistants ID from the OpenAI Playground','wpbot');?></small></label>
17 </div>
18
19 <div class="<?php esc_attr_e( 'mb-3','wpbot');?>">
20 <label for="<?php esc_attr_e( 'qcld_openai_assistants_file','wpbot');?>" class="<?php esc_attr_e( 'form-label','wpbot');?>"><?php esc_html_e( 'Assistants File ID','wpbot');?></label>
21 <input id="<?php esc_attr_e( 'qcld_openai_assistants_file','wpbot');?>" class="<?php esc_attr_e( 'form-control','wpbot');?>" type="text" name="qcld_openai_assistants_file" value="<?php echo esc_attr( get_option( 'qcld_openai_assistants_file')); ?>">
22 <label><small><?php esc_html_e( 'Copy your Assistants File ID from the OpenAI Playground','wpbot');?></small></label>
23 </div>
24 <div class="<?php esc_attr_e( 'mb-3','wpbot');?>">
25 <a class="<?php esc_attr_e( 'btn btn-success','wpbot');?>" id="<?php esc_attr_e( 'save_assistant_setting','wpbot');?>"><?php esc_html_e( 'Save settings','wpbot');?></a>
26 </div>
27 </div>
28 </div>
29 <?php
30 } else { ?>
31 <div class="row my-4">
32 <div class="col-md-12">
33 <?php esc_html_e('GPT Assistant is available with the ');?>
34 <a href="https://www.wpbot.pro/pricing/"><?php esc_html_e('WPBot Pro Professional'); ?></a>
35 <?php esc_html_e(' and '); ?>
36 <a href="https://www.wpbot.pro/pricing/"><?php esc_html_e('Master'); ?></a>
37 <?php esc_html_e(' Licenses'); ?>
38 </div>
39 </div>
40 <?php } ?>