PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.8.3
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.8.3
8.8.3 8.8.2 8.8.1 8.8.0 8.7.9 8.7.8 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 All 539 releases
← All changes | includes/integration/claude/admin/settings.php +26 -27 8.7.2 → 8.8.3 View file →
@@ -4,25 +4,24 @@
4 4 *
5 5 * @package Botmaster
6 6 * @since 14.8.2
7 7 */
8 +
9 +if ( ! defined( 'ABSPATH' ) ) {
10 + exit; // Exit if accessed directly.
11 +}
8 12 ?>
9 13
10 - <div class="card-header bg-dark text-white py-sm-4 border-0">
11 - <div class="row">
12 - <div class="col-auto me-auto">
13 - <h4><?php esc_html_e( 'Claude AI Settings', 'wpchatbot' ); ?></h4>
14 - </div>
15 - </div>
16 - </div>
14 +
17 15 <div class="card-body p-sm-0">
18 16
19 17 <ul class="nav nav-tabs">
20 - <li class="active"><a data-toggle="tab" href="#wp-chatbot-claude-settings"><?php echo esc_html__( 'Claude AI settings', 'wpchatbot' ); ?></a></li>
21 - <li><a data-toggle="tab" href="#wp-chatbot-claude-help"><?php echo esc_html__( 'Claude AI Help', 'wpchatbot' ); ?></a></li>
18 + <li class="active"><a data-toggle="tab" href="#wp-chatbot-claude-settings"><?php echo esc_html__( 'Claude AI settings', 'chatbot' ); ?></a></li>
19 + <li><a data-toggle="tab" href="#wp-chatbot-claude-help"><?php echo esc_html__( 'Claude AI Help', 'chatbot' ); ?></a></li>
22 20 </ul>
23 21
24 22 <div class="tab-content">
23 +
25 24 <div id="wp-chatbot-claude-settings" class="tab-pane in active">
26 25 <div class="row gx-0">
27 26 <div class="mb-3">
28 27 <div class="form-check form-switch my-4">
@@ -27,9 +26,9 @@
27 26 <div class="mb-3">
28 27 <div class="form-check form-switch my-4">
29 28 <input class="form-check-input" type="checkbox" <?php echo ( get_option( 'qcld_claude_enabled' ) == 1 ) ? esc_attr( 'checked' ) : ''; ?> role="switch" value="" id="qcld_claude_enabled">
30 29 <label class="form-check-label" for="qcld_claude_enabled">
31 - <?php esc_html_e( 'Enable Claude AI', 'wpchatbot' ); ?><span style="color:red"> <?php esc_html_e( '(if you want results from claude only, disable Site Search from Settings->Start Menu)', 'wpchatbot' ); ?></span>
30 + <?php esc_html_e( 'Enable Claude AI', 'chatbot' ); ?><span style="color:red"> <?php esc_html_e( '(if you want results from claude only, disable Site Search from Settings->Start Menu)', 'chatbot' ); ?></span>
32 31 </label>
33 32 </div>
34 33 </div>
35 34 </div>
@@ -38,9 +37,9 @@
38 37 <div class="mb-3">
39 38 <div class="form-check form-switch my-4">
40 39 <input class="form-check-input" type="checkbox" <?php echo ( get_option( 'qcld_claude_stream_enabled' ) == 1 ) ? esc_attr( 'checked' ) : ''; ?> role="switch" value="" id="qcld_claude_stream_enabled">
41 40 <label class="form-check-label" for="qcld_claude_stream_enabled">
42 - <?php esc_html_e( 'Enable Streaming', 'wpchatbot' ); ?>
41 + <?php esc_html_e( 'Enable Streaming', 'chatbot' ); ?>
43 42 </label>
44 43 </div>
45 44 </div>
46 45 </div>
@@ -49,9 +48,9 @@
49 48 <div class="mb-3">
50 49 <div class="form-check form-switch my-4">
51 50 <input class="form-check-input" type="checkbox" <?php echo ( get_option( 'qcld_claude_rag_enabled' ) == 1 ) ? esc_attr( 'checked' ) : ''; ?> role="switch" value="" id="qcld_claude_rag_enabled">
52 51 <label class="form-check-label" for="qcld_claude_rag_enabled">
53 - <?php esc_html_e( 'Enable Claude RAG', 'wpchatbot' ); ?>
52 + <?php esc_html_e( 'Enable Claude RAG', 'chatbot' ); ?>
54 53 </label>
55 54 </div>
56 55 </div>
57 56 </div>
@@ -59,14 +58,14 @@
59 58 <div class="mb-3">
60 59 <div class="form-check form-switch my-4">
61 60 <input class="form-check-input" type="checkbox" <?php echo ( get_option( 'qcld_claude_page_suggestion_enabled' ) == '1' ) ? esc_attr( 'checked' ) : ''; ?> role="switch" value="" id="qcld_claude_page_suggestion_enabled">
62 61 <label class="form-check-label" for="qcld_claude_page_suggestion_enabled">
63 - <?php esc_html_e( 'Enable page suggestions with claude Result', 'wpchatbot' ); ?>
62 + <?php esc_html_e( 'Enable page suggestions with claude Result', 'chatbot' ); ?>
64 63 </label>
65 64 </div>
66 65 <!-- POST TYPE -->
67 66 <div class="form-check form-switch my-4">
68 - <label><?php esc_html_e( 'Select POST TYPE(s) to include with search results', 'wpchatbot' ); ?></label>
67 + <label><?php esc_html_e( 'Select POST TYPE(s) to include with search results', 'chatbot' ); ?></label>
69 68 <div id="wp-chatbot-post-converter">
70 69 <ul class="checkbox-list">
71 70 <?php
72 71 $get_cpt_args = array(
@@ -77,13 +76,13 @@
77 76 if ( $post_type->name != 'attachment' ) {
78 77 ?>
79 78 <div class="form-check form-check-inline">
80 79 <input
81 - id="site_claude_search_posttypes_<?php echo $post_type->name; ?>"
80 + id="site_claude_search_posttypes_<?php echo esc_attr( $post_type->name ); ?>"
82 81 type="checkbox"
83 82 name="site_claude_search_posttypes[]"
84 - value="<?php echo $post_type->name; ?>" <?php echo ( ( get_option( 'qcld_openai_relevant_post' ) != '' ) && in_array( $post_type->name, get_option( 'qcld_openai_relevant_post' ) ) ) ? 'checked' : ''; ?>>
85 - <label class="form-check-label" for="site_claude_search_posttypes_<?php echo $post_type->name; ?>"> <?php echo $post_type->name; ?></label>
83 + value="<?php echo esc_attr( $post_type->name ); ?>" <?php echo ( ( get_option( 'qcld_openai_relevant_post' ) != '' ) && in_array( $post_type->name, get_option( 'qcld_openai_relevant_post' ) ) ) ? 'checked' : ''; ?>>
84 + <label class="form-check-label" for="site_claude_search_posttypes_<?php echo esc_attr( $post_type->name ); ?>"> <?php echo esc_html( $post_type->name ); ?></label>
86 85 </div>
87 86 <?php
88 87 }
89 88 }
@@ -95,27 +94,27 @@
95 94 </div>
96 95 </div>
97 96 <div class="row gx-0">
98 97 <div class="form-group mb-3">
99 - <label for="qcld_claude_api_key" class="form-label"><?php esc_html_e( 'Claude API Key', 'wpchatbot' ); ?></label>
98 + <label for="qcld_claude_api_key" class="form-label"><?php esc_html_e( 'Claude API Key', 'chatbot' ); ?></label>
100 99 <div class="input-group">
101 100 <input type="password" class="form-control" id="qcld_claude_api_key" name="qcld_claude_api_key" placeholder="Enter your Claude API Key" value="<?php echo esc_attr( get_option( 'qcld_claude_api_key' ) ); ?>">
102 101 </div>
103 - <small class="form-text text-muted"><?php esc_html_e( 'Get your API key from https://console.anthropic.com/', 'wpchatbot' ); ?> </small>
102 + <small class="form-text text-muted"><?php esc_html_e( 'Get your API key from https://console.anthropic.com/', 'chatbot' ); ?> </small>
104 103 </div>
105 104 </div>
106 105 <div class="row gx-0">
107 106 <div class="form-group mb-3">
108 - <label for="qcld_voyage_api_key" class="form-label"><?php esc_html_e( 'Voyage AI API Key (Required for RAG)', 'wpchatbot' ); ?></label>
107 + <label for="qcld_voyage_api_key" class="form-label"><?php esc_html_e( 'Voyage AI API Key (Required for RAG)', 'chatbot' ); ?></label>
109 108 <div class="input-group">
110 109 <input type="password" class="form-control" id="qcld_voyage_api_key" name="qcld_voyage_api_key" placeholder="Enter your Voyage AI API Key" value="<?php echo esc_attr( get_option( 'qcld_voyage_api_key' ) ); ?>">
111 110 </div>
112 - <small class="form-text text-muted"><?php esc_html_e( 'Anthropic uses Voyage AI for embeddings. Get your Voyage API key from https://dash.voyageai.com/api-keys to use RAG with Claude.', 'wpchatbot' ); ?> </small>
111 + <small class="form-text text-muted"><?php esc_html_e( 'Anthropic uses Voyage AI for embeddings. Get your Voyage API key from https://dash.voyageai.com/api-keys to use RAG with Claude.', 'chatbot' ); ?> </small>
113 112 </div>
114 113 </div>
115 114 <div class="row gx-0">
116 115 <div class="form-group mb-3">
117 - <label for="qcld_claude_model" class="form-label"><?php esc_html_e( 'Select Claude Model', 'wpchatbot' ); ?></label>
116 + <label for="qcld_claude_model" class="form-label"><?php esc_html_e( 'Select Claude Model', 'chatbot' ); ?></label>
118 117 <select class="form-control" id="qcld_claude_model" name="qcld_claude_model">
119 118 <?php
120 119 $models = array(
121 120 'claude-fable-5' => 'Claude Fable 5',
@@ -131,9 +130,9 @@
131 130 $current_model = 'claude-3-opus-20240229';
132 131 }
133 132 foreach($models as $key => $val) {
134 133 $selected = ($key == $current_model) ? 'selected' : '';
135 - echo '<option value="' . esc_attr( $key ) . '" ' . $selected . '>' . esc_html( $val ) . '</option>';
134 + echo '<option value="' . esc_attr( $key ) . '" ' . esc_attr( $selected ) . '>' . esc_html( $val ) . '</option>';
136 135 }
137 136 ?>
138 137 </select>
139 138 </div>
@@ -140,15 +139,15 @@
140 139 </div>
141 140 <div class="row g-0">
142 141 <div class="gx-0">
143 142 <div class="form-group mb-3">
144 - <label for="qcld_claude_system_content" class="form-label"><?php esc_html_e( 'System Content for Claude (Optional)', 'wpchatbot' ); ?></label>
143 + <label for="qcld_claude_system_content" class="form-label"><?php esc_html_e( 'System Content for Claude (Optional)', 'chatbot' ); ?></label>
145 144 <textarea rows="5" class="form-control" id="qcld_claude_system_content" name="qcld_claude_system_content" placeholder="Content for the response"><?php echo esc_textarea( get_option( 'qcld_claude_system_content' ) ); ?></textarea>
146 145 </div>
147 146 </div>
148 147 <div class="gx-0">
149 148 <div class="form-group mb-3">
150 - <label for="qcld_claude_prepend_content" class="form-label"><?php esc_html_e( 'Your Prompt to be Added before the User Query for Customized Results (Optional)', 'wpchatbot' ); ?></label>
149 + <label for="qcld_claude_prepend_content" class="form-label"><?php esc_html_e( 'Your Prompt to be Added before the User Query for Customized Results (Optional)', 'chatbot' ); ?></label>
151 150 <textarea rows="5" class="form-control" id="qcld_claude_prepend_content" name="qcld_claude_prepend_content" placeholder="Content for the response"><?php echo esc_textarea( get_option( 'qcld_claude_prepend_content' ) ); ?></textarea>
152 151
153 152 </div>
154 153 </div>
@@ -153,15 +152,15 @@
153 152 </div>
154 153 </div>
155 154 <div class="gx-0">
156 155 <div class="form-group mb-3">
157 - <label for="qcld_claude_append_content" class="form-label"><?php esc_html_e( 'Your Prompt to be Appended at the End of the User Query for Customized Results (Optional)', 'wpchatbot' ); ?></label>
156 + <label for="qcld_claude_append_content" class="form-label"><?php esc_html_e( 'Your Prompt to be Appended at the End of the User Query for Customized Results (Optional)', 'chatbot' ); ?></label>
158 157 <textarea rows="5" class="form-control" id="qcld_claude_append_content" name="qcld_claude_append_content" placeholder="Content for the response"><?php echo esc_textarea( get_option( 'qcld_claude_append_content' ) ); ?></textarea>
159 158
160 159 </div>
161 160 </div>
162 161 <div class="form-group mb-3">
163 - <a class="btn btn-success" id="qcld_save_claude_setting"><?php esc_html_e( 'Save settings', 'wpchatbot' ); ?></a>
162 + <a class="btn btn-success" id="qcld_save_claude_setting"><?php esc_html_e( 'Save settings', 'chatbot' ); ?></a>
164 163 </div>
165 164 </div>
166 165 </div>
167 166 <div id="wp-chatbot-claude-help" class="tab-pane">