fix: disable vector setup when embeddings disabled

This commit is contained in:
“BeeRad”
2026-01-29 21:03:01 +11:00
parent 55d3ffa1f7
commit 104b02b02f
3 changed files with 30 additions and 12 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ export async function POST(request: NextRequest) {
metadata: body.metadata || {}
});
if (chunkStatus === 'not_chunked' && node.id) {
if (chunkStatus === 'not_chunked' && node.id && process.env.DISABLE_EMBEDDINGS !== 'true') {
autoEmbedQueue.enqueue(node.id, { reason: 'node_created' });
}