mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
fix(server): relax global embedding condition (#11791)
This commit is contained in:
@@ -77,12 +77,6 @@ export class CopilotContextDocJob {
|
||||
contextId?: string
|
||||
) {
|
||||
if (!this.supportEmbedding) return;
|
||||
const allowEmbedding = await this.models.workspace.allowEmbedding(
|
||||
docs[0]?.workspaceId
|
||||
);
|
||||
if (!allowEmbedding) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (const { workspaceId, docId } of docs) {
|
||||
await this.queue.add('copilot.embedding.docs', {
|
||||
|
||||
Reference in New Issue
Block a user