@@ -50,7 +50,7 @@ export default {
5050 description : "The name of the vector search endpoint" ,
5151 async options ( { prevContext } ) {
5252 const {
53- endpoints, next_page_token,
53+ endpoints = [ ] , next_page_token,
5454 } = await this . listEndpoints ( {
5555 params : {
5656 page_token : prevContext . page_token ,
@@ -82,15 +82,12 @@ export default {
8282 } ,
8383 indexName : {
8484 type : "string" ,
85- label : "Vector Search Index" ,
85+ label : "Index Name " ,
8686 description : "The name of the vector search index" ,
87- async options ( { props } ) {
88- if ( ! props . endpointName ) {
89- return [ ] ;
90- }
87+ async options ( { endpointName } ) {
9188 const { vector_indexes = [ ] } = await this . listVectorSearchIndexes ( {
9289 params : {
93- endpoint_name : props . endpointName ,
90+ endpoint_name : endpointName ,
9491 } ,
9592 } ) ;
9693
@@ -293,8 +290,9 @@ export default {
293290 params, ...args
294291 } ) {
295292 return this . _makeRequest ( {
296- path : ` /vector-search/indexes?endpoint_name= ${ params . endpoint_name } ` ,
293+ path : " /vector-search/indexes" ,
297294 method : "GET" ,
295+ params,
298296 ...args ,
299297 } ) ;
300298 } ,
@@ -334,8 +332,9 @@ export default {
334332 } )
335333 {
336334 return this . _makeRequest ( {
337- path : `/vector-search/indexes/${ indexName } /delete-data?primary_keys= ${ params . primary_keys } ` ,
335+ path : `/vector-search/indexes/${ indexName } /delete-data` ,
338336 method : "DELETE" ,
337+ params,
339338 ...args ,
340339 } ) ;
341340 } ,
0 commit comments