@@ -568,7 +568,7 @@ describe('Unit testing of the vectorizer factory class', () => {
568568 textFields : [ 'field3' , 'field4' ] ,
569569 videoFields : [ 'field5' , 'field6' ] ,
570570 location : 'location' ,
571- modelId : 'model-id' ,
571+ model : 'model-id' ,
572572 dimensions : 256 ,
573573 } ) ;
574574 expect ( config ) . toEqual < VectorConfigCreate < never , 'test' , 'hnsw' , 'multi2vec-google' > > ( {
@@ -585,6 +585,7 @@ describe('Unit testing of the vectorizer factory class', () => {
585585 textFields : [ 'field3' , 'field4' ] ,
586586 videoFields : [ 'field5' , 'field6' ] ,
587587 location : 'location' ,
588+ model : 'model-id' ,
588589 modelId : 'model-id' ,
589590 dimensions : 256 ,
590591 } ,
@@ -609,7 +610,7 @@ describe('Unit testing of the vectorizer factory class', () => {
609610 { name : 'field6' , weight : 0.6 } ,
610611 ] ,
611612 location : 'location' ,
612- modelId : 'model-id' ,
613+ model : 'model-id' ,
613614 dimensions : 256 ,
614615 } ) ;
615616 expect ( config ) . toEqual < VectorConfigCreate < never , 'test' , 'hnsw' , 'multi2vec-google' > > ( {
@@ -626,6 +627,7 @@ describe('Unit testing of the vectorizer factory class', () => {
626627 textFields : [ 'field3' , 'field4' ] ,
627628 videoFields : [ 'field5' , 'field6' ] ,
628629 location : 'location' ,
630+ model : 'model-id' ,
629631 modelId : 'model-id' ,
630632 dimensions : 256 ,
631633 weights : {
@@ -1343,7 +1345,7 @@ describe('Unit testing of the vectorizer factory class', () => {
13431345 const config = configure . vectors . text2VecGoogle ( {
13441346 name : 'test' ,
13451347 apiEndpoint : 'api-endpoint' ,
1346- modelId : 'model-id' ,
1348+ model : 'model-id' ,
13471349 projectId : 'project-id' ,
13481350 } ) ;
13491351 expect ( config ) . toEqual < VectorConfigCreate < never , 'test' , 'hnsw' , 'text2vec-google' > > ( {
@@ -1356,6 +1358,7 @@ describe('Unit testing of the vectorizer factory class', () => {
13561358 name : 'text2vec-google' ,
13571359 config : {
13581360 apiEndpoint : 'api-endpoint' ,
1361+ model : 'model-id' ,
13591362 modelId : 'model-id' ,
13601363 projectId : 'project-id' ,
13611364 } ,
@@ -1364,7 +1367,7 @@ describe('Unit testing of the vectorizer factory class', () => {
13641367 } ) ;
13651368
13661369 it ( 'should create the correct Text2VecPalmConfig type using deprecated method with defaults' , ( ) => {
1367- const config = configure . vectors . text2VecPalm ( ) ;
1370+ const config = configure . vectorizer . text2VecPalm ( ) ;
13681371 expect ( config ) . toEqual < VectorConfigCreate < never , undefined , 'hnsw' , 'text2vec-palm' > > ( {
13691372 name : undefined ,
13701373 vectorIndex : {
@@ -1379,7 +1382,7 @@ describe('Unit testing of the vectorizer factory class', () => {
13791382 } ) ;
13801383
13811384 it ( 'should create the correct Text2VecPalmConfig type using deprecated method with all values' , ( ) => {
1382- const config = configure . vectors . text2VecPalm ( {
1385+ const config = configure . vectorizer . text2VecPalm ( {
13831386 name : 'test' ,
13841387 apiEndpoint : 'api-endpoint' ,
13851388 modelId : 'model-id' ,
@@ -1959,7 +1962,7 @@ describe('Unit testing of the generative factory class', () => {
19591962 } ) ;
19601963 } ) ;
19611964
1962- it ( 'should create the correct GeneratGoogleConfig type with required & default values' , ( ) => {
1965+ it ( 'should create the correct GenerateGoogleConfig type with required & default values' , ( ) => {
19631966 const config = configure . generative . google ( ) ;
19641967 expect ( config ) . toEqual < ModuleConfig < 'generative-google' , undefined > > ( {
19651968 name : 'generative-google' ,
@@ -1979,7 +1982,7 @@ describe('Unit testing of the generative factory class', () => {
19791982 const config = configure . generative . palm ( {
19801983 apiEndpoint : 'api-endpoint' ,
19811984 maxOutputTokens : 100 ,
1982- modelId : 'model-id' ,
1985+ model : 'model-id' ,
19831986 projectId : 'project-id' ,
19841987 temperature : 0.5 ,
19851988 topK : 5 ,
@@ -1990,6 +1993,7 @@ describe('Unit testing of the generative factory class', () => {
19901993 config : {
19911994 apiEndpoint : 'api-endpoint' ,
19921995 maxOutputTokens : 100 ,
1996+ model : 'model-id' ,
19931997 modelId : 'model-id' ,
19941998 projectId : 'project-id' ,
19951999 temperature : 0.5 ,
@@ -2003,7 +2007,7 @@ describe('Unit testing of the generative factory class', () => {
20032007 const config = configure . generative . google ( {
20042008 apiEndpoint : 'api-endpoint' ,
20052009 maxOutputTokens : 100 ,
2006- modelId : 'model-id' ,
2010+ model : 'model-id' ,
20072011 projectId : 'project-id' ,
20082012 temperature : 0.5 ,
20092013 topK : 5 ,
@@ -2014,6 +2018,7 @@ describe('Unit testing of the generative factory class', () => {
20142018 config : {
20152019 apiEndpoint : 'api-endpoint' ,
20162020 maxOutputTokens : 100 ,
2021+ model : 'model-id' ,
20172022 modelId : 'model-id' ,
20182023 projectId : 'project-id' ,
20192024 temperature : 0.5 ,
0 commit comments