| @@ -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 | |
| @@ -17,9 +16,9 @@ | ||
| 17 | 16 | <div class="mb-3"> |
| 18 | 17 | <div class="form-check form-switch my-4"> |
| 19 | 18 | <input class="form-check-input" type="checkbox" <?php echo (get_option('qcld_openrouter_enabled') == 1) ? esc_attr('checked','chatbot') :'';?> role="switch" value="" id="<?php esc_attr_e('qcld_openrouter_enabled','chatbot'); ?>"> |
| 20 | 19 | <label class="form-check-label" for="<?php esc_attr_e('qcld_openrouter_enabled','chatbot'); ?>"> |
| 21 | - <?php esc_html_e('Enable OpenRouter AI','chatbot'); ?><span style="color:red"> <?php esc_html_e('(if you want results from OpenRouter only, disable Site Search from Settings->Action Start Menu)','chatbot'); ?></span> | |
| 20 | + <?php esc_html_e('Enable OpenRouter AI','chatbot'); ?><span style="color:red"> <?php esc_html_e('(if you want results from OpenRouter only, disable Site Search from Settings->Start Menu)','chatbot'); ?></span> | |
| 22 | 21 | </label> |
| 23 | 22 | </div> |
| 24 | 23 | </div> |
| 25 | 24 | </div> |
| @@ -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'); ?></br><span style="color:red"><?php esc_html_e('It requires a paid OpenRouter API plan', 'chatbot'); ?> </span></small> | |
| 90 | 89 | </div> |
| 91 | 90 | </div> |
| 92 | 91 | <div class="row g-0"> |
| 93 | 92 | <div class="mb-3 form-check "> |
| @@ -124,9 +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> | |
| 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></br> | |
| 129 | 128 | <span style="color:red"><?php esc_html_e('It requires a paid OpenRouter API plan', 'chatbot'); ?> </span> |
| 130 | 129 | <div class="form-check form-switch my-4"> |
| 131 | 130 | <input class="form-check-input" |
| 132 | 131 | type="checkbox" |
| @@ -149,9 +148,9 @@ | ||
| 149 | 148 | <p> |
| 150 | 149 | <b><?php echo esc_html__( 'How to Use RAG in This Plugin:', 'chatbot'); ?></b> |
| 151 | 150 | <ol> |
| 152 | 151 | <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> | |
| 152 | + <li><?php echo esc_html__( 'Click “Embed All Selected Sources” button, after selecting the sources from the', 'chatbot'); ?> <a href="<?php echo admin_url('admin.php?page=wpbot_openAi#ai-knowledge-base-tab'); ?>" target="_blank">knowledgebase tab</a></li> | |
| 154 | 153 | <li><?php echo esc_html__( '(Optional) Upload PDFs or CSV files for embedding', 'chatbot'); ?></li> |
| 155 | 154 | <li><?php echo esc_html__( 'The system automatically stores embeddings in the database', 'chatbot'); ?></li> |
| 156 | 155 | <li><?php echo esc_html__( 'User questions will now be answered using your site’s knowledge base', 'chatbot'); ?></li> |
| 157 | 156 | <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> |
| @@ -177,9 +176,9 @@ | ||
| 177 | 176 | <div id="panelsStayOpen-collapseZero-openrouter" class="collapse" aria-labelledby="panelsStayOpen-headingZero-openrouter" data-parent="#qcldopenaiaccordion"> |
| 178 | 177 | <div class="card-body-openrouter"> |
| 179 | 178 | <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 | 179 | <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> | |
| 180 | + <h5><?php esc_html_e( 'Grab your OpenAI API key from','chatbot');?> <a href="https://openrouter.ai/settings/keys">HERE</a></h5> | |
| 182 | 181 | <p><?php esc_html_e( 'Please make sure that DialogFlow, OpenAI are Disabled if you want OpenRouter to work.','chatbot');?></p> |
| 183 | 182 | </div> |
| 184 | 183 | </div> |
| 185 | 184 | </div> |