diff --git a/ui/src/pages/ChatConfiguration/ChatConfiguration.jsx b/ui/src/pages/ChatConfiguration/ChatConfiguration.jsx index 239e203a..27f2063b 100644 --- a/ui/src/pages/ChatConfiguration/ChatConfiguration.jsx +++ b/ui/src/pages/ChatConfiguration/ChatConfiguration.jsx @@ -98,8 +98,8 @@ const BotConfiguration = () => { setSelectedOptions(tempSelectedCapabilities) - if(configs[0].capabalities?.length>0){ - setCapabalities(configs[0].capabalities) + if(configs[0].capabilities?.length>0){ + setCapabalities(configs[0].capabilities) } if(configs[0].inference[0]?.id){ @@ -172,6 +172,7 @@ const BotConfiguration = () => { saveBotInferene(currentConfigID, currentInferenceID, data).then(() => { toast.success("Inference saved successfully") setShowNotificationPanel(false); + setActiveTab("capabalities") }) .catch(() => { setShowNotificationPanel(true); @@ -326,23 +327,23 @@ const BotConfiguration = () => {
+ label="Bot Configuration Name" + maxLength={50} + value={configWatch("botName")} + hasError={configFormError["botName"]?.message ? true : false} + errorMessage={configFormError["botName"]?.message} + {...configRegister("botName", { + required: "This field is required", + maxLength: { + value: 50, + message: "The maximum length is 50 characters" + }, + minLength: { + value: 10, + message: "The minimum length is 20 characters" + } + })} + />