mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 19:46:32 +08:00
refactor(infra): refactor copilot client (#8813)
This commit is contained in:
@@ -142,10 +142,6 @@ export class AIProvider {
|
||||
...options: Parameters<BlockSuitePresets.AIActions[T]>
|
||||
) => ReturnType<BlockSuitePresets.AIActions[T]>
|
||||
): void {
|
||||
if (this.actions[id]) {
|
||||
console.warn(`AI action ${id} is already provided`);
|
||||
}
|
||||
|
||||
// @ts-expect-error TODO: maybe fix this
|
||||
this.actions[id] = (
|
||||
...args: Parameters<BlockSuitePresets.AIActions[T]>
|
||||
|
||||
Reference in New Issue
Block a user