fix: add action field in histories gql (#6558)

This commit is contained in:
regischen
2024-04-15 08:15:47 +00:00
parent cbba5d3c17
commit a15ceb8dde
4 changed files with 11 additions and 1 deletions

View File

@@ -89,7 +89,14 @@ export class CopilotClient {
if (message) {
url.searchParams.set('message', message);
}
return fetch(url.toString());
return new Promise(resolve => {
fetch(url.toString())
.then(res => {
resolve(res.text());
})
.catch(console.error);
});
}
// Text or image to text