← All changes
|
includes/integration/openrouter/admin/settings.php
+14
-16
8.6.7
→
7.8.3
View file →
| @@ -1,5 +1,4 @@ | ||
| 1 | -<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> | |
| 2 | 1 | |
| 3 | 2 | |
| 4 | 3 | <div class="card-body p-sm-0"> |
| 5 | 4 | |
| @@ -85,9 +84,9 @@ | ||
| 85 | 84 | <div class="row gx-0"> |
| 86 | 85 | <div class="mb-3 form-check "> |
| 87 | 86 | <label for="qcld_openrouter_api_key" class="form-label"><?php esc_html_e('OpenRouter API Key','chatbot');?></label> |
| 88 | 87 | <input type="password" class="form-control" id="qcld_openrouter_api_key" name="qcld_openrouter_api_key" placeholder="Enter your OpenRouter API Key" value="<?php echo esc_attr(get_option('qcld_openrouter_api_key')); ?>"> |
| 89 | - <small class="form-text text-muted"><?php esc_html_e('Get your API key from https://openrouter.ai/workspaces/default/keys','chatbot'); ?></br><span style="color:red"><?php esc_html_e('It requires a paid OpenRouter API plan', 'chatbot'); ?> </span></small> | |
| 88 | + <small class="form-text text-muted"><?php esc_html_e('Get your API key from https://openrouter.ai/settings/keys','chatbot'); ?></small> | |
| 90 | 89 | </div> |
| 91 | 90 | </div> |
| 92 | 91 | <div class="row g-0"> |
| 93 | 92 | <div class="mb-3 form-check "> |
| @@ -124,10 +123,9 @@ | ||
| 124 | 123 | <div id="wp-chatbot-openrouter-rag" class="tab-pane"> |
| 125 | 124 | <div class="col-sm-12"> |
| 126 | 125 | <div class="wrap"> |
| 127 | 126 | <h3>OpenRouter RAG Settings</h3> |
| 128 | - <p>If you enable RAG, you must configure the <a id="ai-knowledge-base-tab-openrouter" href="<?php echo esc_url( admin_url('admin.php?page=wpbot_openAi#ai-knowledge-base-tab') ); ?>">Knowledgebase</a> for Post types and other data to embed.</p></br> | |
| 129 | - <span style="color:red"><?php esc_html_e('It requires a paid OpenRouter API plan', 'chatbot'); ?> </span> | |
| 127 | + <p>If you enable RAG, you must configure the <a id="ai-knowledge-base-tab-openrouter" href="<?php echo admin_url('admin.php?page=wpbot_openAi#ai-knowledge-base-tab'); ?>">Knowledgebase</a> for Post types and other data to embed.</p> | |
| 130 | 128 | <div class="form-check form-switch my-4"> |
| 131 | 129 | <input class="form-check-input" |
| 132 | 130 | type="checkbox" |
| 133 | 131 | id="is_page_rag_enabled_openrouter" |
| @@ -136,28 +134,28 @@ | ||
| 136 | 134 | Enable RAG |
| 137 | 135 | </label> |
| 138 | 136 | </div> |
| 139 | 137 | <div class="mb-3"> |
| 140 | - <a class="btn btn-success" id="qcld_save_openrouter_setting"><?php esc_html_e( 'Save settings','chatbot');?></a> | |
| 138 | + <a class="btn btn-success" id="save_setting"><?php esc_html_e( 'Save settings','chatbot');?></a> | |
| 141 | 139 | </div> |
| 142 | 140 | </div> |
| 143 | 141 | <div class="qcld-row"> |
| 144 | 142 | <div class="alert alert-info mt-20" role="alert"> |
| 145 | - <p><b><?php echo esc_html__( 'Fine Tuning VS GPT Assistants VS RAG:', 'chatbot'); ?></b></p> | |
| 143 | + <p><b><?php echo esc_html__( 'Fine Tuning VS GPT Assistants VS RAG:', 'wpchatbot' ); ?></b></p> | |
| 146 | 144 | <p> |
| 147 | - <?php echo esc_html__( 'We suggest using GPT Assistants or RAG instead of Fine Tuning as Fine Tuning requires a lot of properly formatted data and GPT Assistants are easier to set up. You can still use your website data to train the bot.', 'chatbot'); ?> | |
| 145 | + <?php echo esc_html__( 'We suggest using GPT Assistants or RAG instead of Fine Tuning as Fine Tuning requires a lot of properly formatted data and GPT Assistants are easier to set up. You can still use your website data to train the bot.', 'wpchatbot' ); ?> | |
| 148 | 146 | </p></br> |
| 149 | 147 | <p> |
| 150 | - <b><?php echo esc_html__( 'How to Use RAG in This Plugin:', 'chatbot'); ?></b> | |
| 148 | + <b><?php echo esc_html__( 'How to Use RAG in This Plugin:', 'wpchatbot' ); ?></b> | |
| 151 | 149 | <ol> |
| 152 | - <li><?php echo esc_html__( 'Enable RAG from the settings panel', 'chatbot'); ?></li> | |
| 153 | - <li><?php echo esc_html__( 'Click "Embed All Selected Sources" button, after selecting the sources from the', 'chatbot'); ?> <a href="<?php echo esc_url( admin_url('admin.php?page=wpbot_openAi#ai-knowledge-base-tab') ); ?>" target="_blank">knowledgebase tab</a></li> | |
| 154 | - <li><?php echo esc_html__( '(Optional) Upload PDFs or CSV files for embedding', 'chatbot'); ?></li> | |
| 155 | - <li><?php echo esc_html__( 'The system automatically stores embeddings in the database', 'chatbot'); ?></li> | |
| 156 | - <li><?php echo esc_html__( 'User questions will now be answered using your site’s knowledge base', 'chatbot'); ?></li> | |
| 157 | - <li><?php echo esc_html__( 'You need to configure the OpenAI API key, AI Model and System Command under the main OpenAI Settings', 'chatbot'); ?></li> | |
| 150 | + <li><?php echo esc_html__( 'Enable RAG from the settings panel', 'wpchatbot' ); ?></li> | |
| 151 | + <li><?php echo esc_html__( 'Click “Embed All Selected Sources” button, after selecting the sources from the', 'wpchatbot' ); ?> <a href="<?php echo admin_url('admin.php?page=wpbot_openAi#ai-knowledge-base-tab'); ?>" target="_blank">knowledgebase tab</a></li> | |
| 152 | + <li><?php echo esc_html__( '(Optional) Upload PDFs or CSV files for embedding', 'wpchatbot' ); ?></li> | |
| 153 | + <li><?php echo esc_html__( 'The system automatically stores embeddings in the database', 'wpchatbot' ); ?></li> | |
| 154 | + <li><?php echo esc_html__( 'User questions will now be answered using your site’s knowledge base', 'wpchatbot' ); ?></li> | |
| 155 | + <li><?php echo esc_html__( 'You need to configure the OpenAI API key, AI Model and System Command under the main OpenAI Settings', 'wpchatbot' ); ?></li> | |
| 158 | 156 | </ol> |
| 159 | - <strong><?php echo esc_html__( 'You can update or re-embed content at any time without retraining.', 'chatbot'); ?></strong> | |
| 157 | + <strong><?php echo esc_html__( 'You can update or re-embed content at any time without retraining.', 'wpchatbot' ); ?></strong> | |
| 160 | 158 | </p> |
| 161 | 159 | |
| 162 | 160 | </div> |
| 163 | 161 | |
| @@ -177,9 +175,9 @@ | ||
| 177 | 175 | <div id="panelsStayOpen-collapseZero-openrouter" class="collapse" aria-labelledby="panelsStayOpen-headingZero-openrouter" data-parent="#qcldopenaiaccordion"> |
| 178 | 176 | <div class="card-body-openrouter"> |
| 179 | 177 | <h5><?php esc_html_e( 'OpenRouter is an unified Interface or Aggregator for LLMs. You can choose from hundreds of different AI models from OpenAI to Deepseek or Claude to get AI responses.','chatbot');?></h5> |
| 180 | 178 | <h5><?php esc_html_e( 'All you have to do is add the OpenRouter API Key and select an OpenRouter Model.','chatbot');?></h5> |
| 181 | - <h5><?php esc_html_e( 'Grab your OpenAI API key from','chatbot');?> <a href="https://openrouter.ai/workspaces/default/keys">HERE</a></h5> | |
| 179 | + <h5><?php esc_html_e( 'Grab your OpenAI API key from','chatbot');?> <a href="https://openrouter.ai/settings/keys">HERE</a></h5> | |
| 182 | 180 | <p><?php esc_html_e( 'Please make sure that DialogFlow, OpenAI are Disabled if you want OpenRouter to work.','chatbot');?></p> |
| 183 | 181 | </div> |
| 184 | 182 | </div> |
| 185 | 183 | </div> |