From 90d12d0980629b75665e06f6a9900a23e897583a Mon Sep 17 00:00:00 2001 From: Anupam Kumar Date: Mon, 16 Sep 2024 12:08:16 +0200 Subject: [PATCH 1/2] fix: render context chat's the referenced source items Signed-off-by: Anupam Kumar --- .../AssistantTextProcessingForm.vue | 14 +- .../ContextChat/ContextChatOutputForm.vue | 138 ++++++++++++++++++ 2 files changed, 148 insertions(+), 4 deletions(-) create mode 100644 src/components/ContextChat/ContextChatOutputForm.vue diff --git a/src/components/AssistantTextProcessingForm.vue b/src/components/AssistantTextProcessingForm.vue index 6b866a93..7b818605 100644 --- a/src/components/AssistantTextProcessingForm.vue +++ b/src/components/AssistantTextProcessingForm.vue @@ -44,7 +44,11 @@ :show-advanced.sync="showAdvanced" />
- + + + From ba827da0622c556e3d2c945de69bf9bd33e58993 Mon Sep 17 00:00:00 2001 From: Anupam Kumar Date: Mon, 16 Sep 2024 18:24:24 +0200 Subject: [PATCH 2/2] refactor: move outputs to a separate component Signed-off-by: Anupam Kumar --- src/components/AssistantFormOutputs.vue | 107 ++++++++++++++++++ .../AssistantTextProcessingForm.vue | 72 ++---------- 2 files changed, 114 insertions(+), 65 deletions(-) create mode 100644 src/components/AssistantFormOutputs.vue diff --git a/src/components/AssistantFormOutputs.vue b/src/components/AssistantFormOutputs.vue new file mode 100644 index 00000000..8b0580a0 --- /dev/null +++ b/src/components/AssistantFormOutputs.vue @@ -0,0 +1,107 @@ + + + + + diff --git a/src/components/AssistantTextProcessingForm.vue b/src/components/AssistantTextProcessingForm.vue index 7b818605..6a1f4cbb 100644 --- a/src/components/AssistantTextProcessingForm.vue +++ b/src/components/AssistantTextProcessingForm.vue @@ -42,32 +42,11 @@ :selected-task-id="selectedTaskId" :selected-task-type="selectedTaskType" :show-advanced.sync="showAdvanced" /> -
- - - - {{ t('assistant', 'The task ran successfully but the result is identical to the input.') }} - - - {{ t('assistant', 'This output was generated by AI. Make sure to double-check and adjust.') }} - -
+