fix: skip pgvector table check when enabling AI search on turbopuffer

This commit is contained in:
Philipinho
2026-08-22 04:32:25 +01:00
parent e14f499f3d
commit d7d32ff2ce
@@ -396,7 +396,10 @@ export class WorkspaceService {
}
}
if (updateWorkspaceDto.aiSearch) {
if (
updateWorkspaceDto.aiSearch &&
this.environmentService.getAiVectorDriver() !== 'turbopuffer'
) {
const tableExists = await isPageEmbeddingsTableExists(this.db);
if (!tableExists) {
throw new BadRequestException(