From c2e6ad6376ee3c575af1bc55ab22e7a98d3805d1 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 11 Aug 2025 17:04:03 +0530 Subject: [PATCH] feat: add citations option to edit assistant form (#12151) Co-authored-by: Muhsin Keloth --- .../pageComponents/assistant/EditAssistantForm.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/javascript/dashboard/components-next/captain/pageComponents/assistant/EditAssistantForm.vue b/app/javascript/dashboard/components-next/captain/pageComponents/assistant/EditAssistantForm.vue index 3134d7062..ad65f7511 100644 --- a/app/javascript/dashboard/components-next/captain/pageComponents/assistant/EditAssistantForm.vue +++ b/app/javascript/dashboard/components-next/captain/pageComponents/assistant/EditAssistantForm.vue @@ -41,6 +41,7 @@ const initialState = { features: { conversationFaqs: false, memories: false, + citations: false, }, temperature: 1, }; @@ -87,6 +88,7 @@ const updateStateFromAssistant = assistant => { state.features = { conversationFaqs: config.feature_faq || false, memories: config.feature_memory || false, + citations: config.feature_citation || false, }; state.temperature = config.temperature || 1; }; @@ -152,6 +154,7 @@ const handleFeaturesUpdate = () => { ...props.assistant.config, feature_faq: state.features.conversationFaqs, feature_memory: state.features.memories, + feature_citation: state.features.citations, }, }; @@ -314,6 +317,14 @@ watch( /> {{ t('CAPTAIN.ASSISTANTS.FORM.FEATURES.ALLOW_MEMORIES') }} +