# chatbot/4.3.8/includes/openai/admin/files.php

WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services, version 4.3.8. 49 lines.

- Page: https://pluginprobe.com/plugins/chatbot/4.3.8/code/includes/openai/admin/files.php
- Raw: https://pluginprobe.com/plugins/chatbot/4.3.8/raw/includes/openai/admin/files.php
- Modified: 2023-02-09T09:41:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/chatbot/4.3.8/code/includes/openai/admin/files.php#L10-L20`.

```php
<?php 
$plugin_data = get_plugin_data( QCLD_wpCHATBOT_PLUGIN_DIR_PATH . '\qcld-wpwbot.php' );
$plugin_name = $plugin_data['Name'];
if(($plugin_name == 'WPBot Pro Wordpress Chatbot (Professional)') || ($plugin_name == 'WPBot Pro Wordpress Chatbot (Master)') || (function_exists('get_openaiaddon_valid_license') && get_openaiaddon_valid_license())){
?>
<div class="row">
    <div  class="col-md-12">
        <form class="file_form">
            <div class="success-message alert alert-info"></div>
            <div class="error-message alert alert-danger"></div>
            <input type="file" (change)="fileEvent($event)" class="inputfile" id="openfileinput" style="display:none"/>
            <label for="openfileinput" class="huge ui grey button">
                <i class="fa fa-upload"></i> 
                Upload JSONL
            </label>
        </form>
        </br>
        <a href="https://wpbot.pro/myfile.jsonl" download><?php esc_html_e( 'Right click and Save the Example jsonl file','openai_addon');?></a>
        <div class="table-responsive">
            <table class="table table-striped table-bordered">
                <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>
                <tbody id="openaiFileList">
                    
                </tbody>
            </table>
        </div>
        <div class="my-5">
            <h2><?php esc_html_e( 'Fine Tuned Models List','openai_addon');?></br></h2>
        </div>
        <div class="table-responsive">
            <table class="table table-striped table-bordered">
                <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>
                <tbody id="openaiFTList">
                    
                </tbody>
            </table>
        </div>
    </div>
</div>
<?php } else { ?>
    <div class="row">
    <div  class="col-md-12">
 <?php
    esc_html_e('Fine tuning and training is available with the WPBot Pro Professional and Master Licenses');

 }

 ?>
  </div> </div>
```
