flattens the params

This commit is contained in:
ajaythapliyal 2023-03-06 23:05:21 +05:30
parent a888f38afb
commit ae36ff9394

View File

@ -52,13 +52,8 @@ export function fetchAnswerApi(
}
export function sendFeedback(
{
prompt,
response,
}: {
prompt: string;
response: string;
},
prompt: string,
response: string,
feedback: FEEDBACK,
) {
return fetch(`${apiHost}/api/feedback`, {