PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 4.8.9
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v4.8.9
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 / files.php

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

90 lines 5.6 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="row">
6 <div class="col-md-12">
7 <div class="alert alert-danger my-4">
8 <?php esc_html_e('Fine tuning will not work yet if you select GPT 3 Turbo (ChatGPT) and GPT 4 Turbo as engine. We will add this feature as soon as OpenAI API supports it'); ?>
9 </div>
10 <form class="file_form">
11 <div class="success-message alert alert-info"></div>
12 <div class="error-message alert alert-danger"></div>
13 <input type="file" (change)="fileEvent($event)" class="inputfile" id="openfileinput" style="display:none"/>
14 <label for="openfileinput" class="huge ui grey button">
15 <i class="fa fa-upload"></i>
16 Upload JSONL
17 </label>
18 </form>
19 </br>
20 <a href="https://wpbot.pro/myfile.jsonl" download><?php esc_html_e( 'Right click and Save the Example jsonl file','openai_addon');?></a>
21 <div class="table-responsive">
22 <table class="table table-striped table-bordered">
23 <thead><tr><td> <?php esc_html_e( 'File name','openai_addon'); ?></td><td><?php esc_html_e( 'File id','openai_addon');?></td><td><?php esc_html_e( 'Action','openai_addon');?></td></tr></thead>
24 <tbody id="openaiFileList">
25
26 </tbody>
27 </table>
28 </div>
29 <div class="my-5">
30 <h2><?php esc_html_e( 'Fine Tuned Models List','openai_addon');?></br></h2>
31 </div>
32 <div class="table-responsive">
33 <table class="table table-striped table-bordered">
34 <thead><tr><td><?php esc_html_e( 'FT id','openai_addon');?></td><td><?php esc_html_e( 'FT Model','openai_addon');?></td><td><?php esc_html_e( 'Status','openai_addon');?> </td><td><?php esc_html_e( 'File Name','openai_addon');?></td><td> <?php esc_html_e( 'File Id','openai_addon');?></td></tr></thead>
35 <tbody id="openaiFTList">
36
37 </tbody>
38 </table>
39 </div>
40 </div>
41 </div>
42
43 <?php
44 } else { ?>
45 <div class="row">
46 <div class="col-md-12">
47 <?php
48 esc_html_e('Fine tuning and training is available with the WPBot Pro Professional and Master Licenses');
49
50 ?>
51 </div>
52 </div>
53 <?php } ?>
54
55 <div id="qcld-ft-modal" class="modal fade bd-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
56 <div class="modal-dialog modal-sm">
57 <div class="modal-content">
58 <div class="modal-header">
59 <h5 class="modal-title" id="exampleModalLongTitle">Create your Fine Tune</h5>
60 <button type="button" class="close" data-dismiss="modal" aria-label="Close">
61 <span aria-hidden="true">&times;</span>
62 </button>
63 </div>
64 <div class="modal-body">
65 <div class="form-group">
66 <label for="qcld_openai_suffix" class="form-label"><?php esc_html_e( 'Suffix for custom model','openai_addon');?></label>
67 <input id="qcld_openai_ft_suffix" class="form-control" type="text" name="qcld_openai_ft_suffix" value="<?php echo get_option( 'qcld_openai_suffix'); ?>">
68 <input id="qcld_openai_ft_fileid" class="form-control" type="hidden" name="qcld_openai_ft_fileid" value="">
69 </div>
70 <div class="form-group">
71 <label for="exampleFormControlSelect1">Fine tune model</label>
72 <select class="form-select" aria-label="Default select example" name="qcld_openai_ft_engines" id="qcld_openai_ft_engines">
73 <option <?php echo ((get_option( 'openai_engines') == '') ? 'selected' : '') ; ?>><?php esc_html_e( 'Please select Engines','openai_addon');?></option>
74 <option value="text-davinci-003" <?php echo ((get_option( 'openai_engines') == 'text-davinci-003') ? 'selected' : '') ; ?>><?php esc_html_e( 'Davinci (GPT-3 model)','openai_addon');?></option>
75 <option value="text-davinci-001" <?php echo ((get_option( 'openai_engines') == 'text-davinci-001') ? 'selected' : '') ; ?>><?php esc_html_e( 'Davinci','openai_addon');?></option>
76 <option value="text-ada-001" <?php echo ((get_option( 'openai_engines') == 'text-ada-001') ? 'selected' : '') ; ?>><?php esc_html_e( 'Ada','openai_addon');?></option>
77 <option value="text-curie-001" <?php echo ((get_option( 'openai_engines') == 'text-curie-001') ? 'selected' : '') ; ?>><?php esc_html_e( 'Curie','openai_addon');?></option>
78 <option value="text-babbage-001" <?php echo ((get_option( 'openai_engines') == 'text-babbage-001') ? 'selected' : '' ); ?>><?php esc_html_e( 'Babbag','openai_addon');?></option>
79 </select>
80 </div>
81 </div>
82 <div class="modal-footer">
83 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
84 <button type="button" class="btn btn-primary create_ft_model">Create Fine tune</button>
85 </div>
86 </div>
87 </div>
88 </div>
89
90