mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 10:52:40 +08:00
fix: add action field in histories gql (#6558)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user