From f7463699be6698ab0747cbf0662c2c0d017b5fc6 Mon Sep 17 00:00:00 2001 From: ajaythapliyal Date: Mon, 20 Feb 2023 09:19:57 +0530 Subject: [PATCH] removes hardcoded conversation --- .../src/conversation/conversationSlice.ts | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/frontend/src/conversation/conversationSlice.ts b/frontend/src/conversation/conversationSlice.ts index 7417391..82e62ce 100644 --- a/frontend/src/conversation/conversationSlice.ts +++ b/frontend/src/conversation/conversationSlice.ts @@ -3,30 +3,8 @@ import store from '../store'; import { fetchAnswerApi } from './conversationApi'; import { Answer, ConversationState, Message } from './conversationModels'; -// harcoding the initial state just for demo const initialState: ConversationState = { - conversation: [ - { text: 'what is ChatGPT', type: 'QUESTION' }, - { text: 'ChatGPT is large learning model', type: 'ANSWER' }, - { text: 'what is ChatGPT', type: 'QUESTION' }, - { text: 'ChatGPT is large learning model', type: 'ANSWER' }, - { text: 'what is ChatGPT', type: 'QUESTION' }, - { text: 'ChatGPT is large learning model', type: 'ANSWER' }, - { text: 'what is ChatGPT', type: 'QUESTION' }, - { text: 'ChatGPT is large learning model', type: 'ANSWER' }, - { text: 'what is ChatGPT', type: 'QUESTION' }, - { text: 'ChatGPT is large learning model', type: 'ANSWER' }, - { text: 'what is ChatGPT', type: 'QUESTION' }, - { text: 'ChatGPT is large learning model', type: 'ANSWER' }, - { text: 'what is ChatGPT', type: 'QUESTION' }, - { text: 'ChatGPT is large learning model', type: 'ANSWER' }, - { text: 'what is ChatGPT', type: 'QUESTION' }, - { text: 'ChatGPT is large learning model', type: 'ANSWER' }, - { text: 'what is ChatGPT', type: 'QUESTION' }, - { text: 'ChatGPT is large learning model', type: 'ANSWER' }, - { text: 'what is ChatGPT', type: 'QUESTION' }, - { text: 'ChatGPT is large learning model', type: 'ANSWER' }, - ], + conversation: [], status: 'idle', };