refactor(core): remove copilot client from presets (#6546)

depends on https://github.com/toeverything/blocksuite/pull/6748
This commit is contained in:
pengx17
2024-04-15 05:31:32 +00:00
parent 2b69fde937
commit e1eb925704
5 changed files with 130 additions and 61 deletions

View File

@@ -153,7 +153,7 @@ export function useCurrentUser(): CheckedUser {
const user = session.user;
dispatcher({ type: 'update', payload: user });
// todo: move this to a better place!
AIProvider.provideUserInfo(() => {
AIProvider.provide('userInfo', () => {
return user;
});
} else {