-
-
-
{{ $t('chat.suggestedQuestions') }}
-
-
-
+
+
+
+
{{ $t('chat.suggestedQuestions') }}
+
+
+
+
+
+
+
+
+
{{ currentBatchNumber }}/{{ totalBatches }}
+
+
@@ -39,6 +106,19 @@ function handleQuestionClick(question: string) {
>
{{ question }}
+
+
+
diff --git a/web/src/views/chat/components/Message/index.vue b/web/src/views/chat/components/Message/index.vue
index 3a72fd2d..7ee6b94c 100644
--- a/web/src/views/chat/components/Message/index.vue
+++ b/web/src/views/chat/components/Message/index.vue
@@ -24,6 +24,9 @@ interface Props {
artifacts?: Chat.Artifact[]
suggestedQuestions?: string[]
suggestedQuestionsLoading?: boolean
+ suggestedQuestionsBatches?: string[][]
+ currentSuggestedQuestionsBatch?: number
+ suggestedQuestionsGenerating?: boolean
exploreMode?: boolean
}
@@ -33,6 +36,9 @@ interface Emit {
(ev: 'togglePin'): void
(ev: 'afterEdit', index: number, text: string): void
(ev: 'useQuestion', question: string): void
+ (ev: 'generateMoreSuggestions'): void
+ (ev: 'previousSuggestionsBatch'): void
+ (ev: 'nextSuggestionsBatch'): void
}
const props = defineProps
()
@@ -77,6 +83,18 @@ function handleDelete() {
function handleUseQuestion(question: string) {
emit('useQuestion', question)
}
+
+function handleGenerateMoreSuggestions() {
+ emit('generateMoreSuggestions')
+}
+
+function handlePreviousSuggestionsBatch() {
+ emit('previousSuggestionsBatch')
+}
+
+function handleNextSuggestionsBatch() {
+ emit('nextSuggestionsBatch')
+}
@@ -139,8 +157,16 @@ function handleUseQuestion(question: string) {
-