fix: skip pgvector table check when enabling AI search on turbopuffer (#2416)
This commit is contained in:
parent
e14f499f3d
commit
549cf7c005
1 changed files with 4 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue