- Introduction of dynamic Retrievers & Specialists

- Introduction of dynamic Processors
- Introduction of caching system
- Introduction of a better template manager
- Adaptation of ModelVariables to support dynamic Processors / Retrievers / Specialists
- Start adaptation of chat client
This commit is contained in:
Josako
2024-11-15 10:00:53 +01:00
parent 55a8a95f79
commit 1807435339
101 changed files with 4181 additions and 1764 deletions

View File

@@ -29,7 +29,8 @@ function eveai_chat_shortcode($atts) {
'domain' => '',
'language' => 'en',
'supported_languages' => 'en,fr,de,es',
'server_url' => 'https://evie.askeveai.com'
'server_url' => 'https://evie.askeveai.com',
'specialist_id' => '1' // Added specialist_id parameter
);
// Merge provided attributes with defaults
@@ -42,6 +43,7 @@ function eveai_chat_shortcode($atts) {
$language = sanitize_text_field($atts['language']);
$supported_languages = sanitize_text_field($atts['supported_languages']);
$server_url = esc_url_raw($atts['server_url']);
$specialist_id = sanitize_text_field($atts['specialist_id']); // Sanitize specialist_id
// Generate a unique ID for this instance of the chat widget
$chat_id = 'chat-container-' . uniqid();
@@ -55,7 +57,8 @@ function eveai_chat_shortcode($atts) {
'$domain',
'$language',
'$supported_languages',
'$server_url'
'$server_url',
'$specialist_id'
);
eveAI.initializeChat('$chat_id');
});