Merge pull request #273 from Hexastack/255-issue-settings-removing-default-global-fallback

fix(frontend): removing default plugin issue
This commit is contained in:
Med Marrouchi 2024-10-28 11:30:48 +01:00 committed by GitHub
commit 94afdd6c41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View File

@ -5,6 +5,7 @@
"label": {
"global_fallback": "Enable Global Fallback?",
"fallback_message": "Fallback Message",
"fallback_block": "Fallback Block",
"default_nlu_helper": "Default NLU Helper",
"default_llm_helper": "Default LLM Helper"
},
@ -14,4 +15,4 @@
"default_nlu_helper": "The NLU helper is responsible for processing and understanding user inputs, including tasks like intent prediction, language detection, and entity recognition.",
"default_llm_helper": "The LLM helper leverages advanced generative AI to perform tasks such as text generation, chat completion, and complex query responses."
}
}
}

View File

@ -280,7 +280,6 @@
"effects": "Apply plugin effects",
"enable_fallback": "Enable Fallback?",
"max_fallback_attempts": "Max Fallback Attempts",
"fallback_block": "Fallback Block",
"fallback_message": "Fallback Message",
"labeled_with": "Target users with labels?",
"assign_labels": "Assign labels",

View File

@ -5,6 +5,7 @@
"label": {
"global_fallback": "Activer la réponse de secours globale ?",
"fallback_message": "Message de secours",
"fallback_block": "Bloc de secours",
"default_nlu_helper": "Utilitaire NLU par défaut",
"default_llm_helper": "Utilitaire LLM par défaut"
},
@ -14,4 +15,4 @@
"default_nlu_helper": "Utilitaire du traitement et de la compréhension des entrées des utilisateurs, incluant des tâches telles que la prédiction d'intention, la détection de langue et la reconnaissance d'entités.",
"default_llm_helper": "Utilitaire responsable de l'intelligence artificielle générative avancée pour effectuer des tâches telles que la génération de texte, la complétion de chat et les réponses à des requêtes complexes."
}
}
}

View File

@ -280,7 +280,6 @@
"effects": "Appliquer les effets des plugins",
"enable_fallback": "Activer le message de secours?",
"max_fallback_attempts": "Nombre maximum de tentatives de secours",
"fallback_block": "Bloc de secours",
"fallback_message": "Message de secours",
"labeled_with": "Cibler les utilisateurs",
"assign_labels": "Affecter des étiquettes",

View File

@ -118,7 +118,7 @@ const SettingInput: React.FC<RenderSettingInputProps> = ({
label={t("label.fallback_block")}
helperText={t("help.fallback_block")}
multiple={false}
onChange={(_e, selected, ..._) => onChange(selected?.id)}
onChange={(_e, selected, ..._) => onChange(selected?.id || null)}
{...rest}
/>
);