mirror of
https://github.com/arc53/DocsGPT
synced 2024-11-02 03:40:17 +00:00
flattens the params
This commit is contained in:
parent
a888f38afb
commit
ae36ff9394
@ -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`, {
|
||||
|
Loading…
Reference in New Issue
Block a user