Fixed the feedback issue

This commit is contained in:
Niharika Goulikar
2024-11-26 12:16:21 +00:00
parent 8d8423b6e0
commit e9a2b8f03a
4 changed files with 36 additions and 14 deletions

View File

@@ -202,12 +202,16 @@ export function handleSendFeedback(
prompt: string,
response: string,
feedback: FEEDBACK,
conversation_id:string,
prompt_index:number
) {
return conversationService
.feedback({
question: prompt,
answer: response,
feedback: feedback,
conversation_id:conversation_id,
question_index:prompt_index
})
.then((response) => {
if (response.ok) {