fix: vectorsdb SDK spec and DatabaseType enum

- Fix createTextEmbeddings SDK parameters (texts, model instead of databaseId, collectionId, documents)
- Add vectorsdb to DatabaseType enum in Database response model
This commit is contained in:
Prem Palanisamy
2026-03-17 16:12:48 +00:00
parent 64dc730a3b
commit 8ba35d8810
2 changed files with 3 additions and 4 deletions
@@ -68,9 +68,8 @@ class Create extends CreateDocumentAction
],
contentType: ContentType::JSON,
parameters: [
new Parameter('databaseId', optional: false),
new Parameter('collectionId', optional: false),
new Parameter('documents', optional: false),
new Parameter('texts', optional: false),
new Parameter('model', optional: true),
]
)
])
@@ -45,7 +45,7 @@ class Database extends Model
'description' => 'Database type.',
'default' => 'legacy',
'example' => 'legacy',
'enum' => ['legacy', 'tablesdb', 'documentsdb'],
'enum' => ['legacy', 'tablesdb', 'documentsdb', 'vectorsdb'],
]);
}