fix(server): relax global embedding condition (#11791)

This commit is contained in:
darkskygit
2025-04-18 06:56:35 +00:00
parent 3772a4700e
commit a33b82e8b1
2 changed files with 1 additions and 26 deletions

View File

@@ -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', {