@@ -377,7 +377,7 @@ describe('GenerativeModel generateContent', () => {
377
377
) ;
378
378
await modelWithRequestOptions . generateContent ( req ) ;
379
379
// @ts -ignore
380
- expect ( generateContentSpy . calls . allArgs ( ) [ 0 ] [ 8 ] . timeoutMillis ) . toEqual ( 0 ) ;
380
+ expect ( generateContentSpy . calls . allArgs ( ) [ 0 ] [ 9 ] . timeoutMillis ) . toEqual ( 0 ) ;
381
381
} ) ;
382
382
it ( 'returns a GenerateContentResponse when passed a string' , async ( ) => {
383
383
const expectedResult : GenerateContentResult = {
@@ -615,7 +615,7 @@ describe('GenerativeModelPreview generateContent', () => {
615
615
) ;
616
616
await modelWithRequestOptions . generateContent ( req ) ;
617
617
// @ts -ignore
618
- expect ( generateContentSpy . calls . allArgs ( ) [ 0 ] [ 8 ] . timeoutMillis ) . toEqual ( 0 ) ;
618
+ expect ( generateContentSpy . calls . allArgs ( ) [ 0 ] [ 9 ] . timeoutMillis ) . toEqual ( 0 ) ;
619
619
} ) ;
620
620
it ( 'returns a GenerateContentResponse when passed a string' , async ( ) => {
621
621
const expectedResult : GenerateContentResult = {
@@ -858,7 +858,7 @@ describe('GenerativeModel generateContentStream', () => {
858
858
) ;
859
859
await modelWithRequestOptions . generateContentStream ( req ) ;
860
860
// @ts -ignore
861
- expect ( generateContentSpy . calls . allArgs ( ) [ 0 ] [ 8 ] . timeoutMillis ) . toEqual ( 0 ) ;
861
+ expect ( generateContentSpy . calls . allArgs ( ) [ 0 ] [ 9 ] . timeoutMillis ) . toEqual ( 0 ) ;
862
862
} ) ;
863
863
it ( 'returns a GenerateContentResponse when passed a string' , async ( ) => {
864
864
const expectedResult : StreamGenerateContentResult = {
@@ -1017,7 +1017,7 @@ describe('GenerativeModelPreview generateContentStream', () => {
1017
1017
) ;
1018
1018
await modelWithRequestOptions . generateContentStream ( req ) ;
1019
1019
// @ts -ignore
1020
- expect ( generateContentSpy . calls . allArgs ( ) [ 0 ] [ 8 ] . timeoutMillis ) . toEqual ( 0 ) ;
1020
+ expect ( generateContentSpy . calls . allArgs ( ) [ 0 ] [ 9 ] . timeoutMillis ) . toEqual ( 0 ) ;
1021
1021
} ) ;
1022
1022
1023
1023
it ( 'returns a GenerateContentResponse when passed a string' , async ( ) => {
@@ -1189,7 +1189,7 @@ describe('ChatSession', () => {
1189
1189
expect ( chatSessionWithRequestOptions . requestOptions ) . toEqual (
1190
1190
TEST_REQUEST_OPTIONS
1191
1191
) ;
1192
- expect ( generateContentSpy . calls . allArgs ( ) [ 0 ] [ 8 ] . timeoutMillis ) . toEqual ( 0 ) ;
1192
+ expect ( generateContentSpy . calls . allArgs ( ) [ 0 ] [ 9 ] . timeoutMillis ) . toEqual ( 0 ) ;
1193
1193
} ) ;
1194
1194
1195
1195
it ( 'returns a GenerateContentResponse and appends to history when startChat is passed with no args' , async ( ) => {
@@ -1364,7 +1364,7 @@ describe('ChatSession', () => {
1364
1364
expect ( chatSessionWithRequestOptions . requestOptions ) . toEqual (
1365
1365
TEST_REQUEST_OPTIONS
1366
1366
) ;
1367
- expect ( generateContentSpy . calls . allArgs ( ) [ 0 ] [ 8 ] . timeoutMillis ) . toEqual ( 0 ) ;
1367
+ expect ( generateContentSpy . calls . allArgs ( ) [ 0 ] [ 9 ] . timeoutMillis ) . toEqual ( 0 ) ;
1368
1368
} ) ;
1369
1369
it ( 'returns a StreamGenerateContentResponse and appends role if missing' , async ( ) => {
1370
1370
const req = 'How are you doing today?' ;
@@ -1528,7 +1528,7 @@ describe('ChatSessionPreview', () => {
1528
1528
expect ( chatSessionWithRequestOptions . requestOptions ) . toEqual (
1529
1529
TEST_REQUEST_OPTIONS
1530
1530
) ;
1531
- expect ( generateContentSpy . calls . allArgs ( ) [ 0 ] [ 8 ] . timeoutMillis ) . toEqual ( 0 ) ;
1531
+ expect ( generateContentSpy . calls . allArgs ( ) [ 0 ] [ 9 ] . timeoutMillis ) . toEqual ( 0 ) ;
1532
1532
} ) ;
1533
1533
1534
1534
it ( 'returns a GenerateContentResponse and appends to history when startChat is passed with no args' , async ( ) => {
@@ -1703,7 +1703,7 @@ describe('ChatSessionPreview', () => {
1703
1703
expect ( chatSessionWithRequestOptions . requestOptions ) . toEqual (
1704
1704
TEST_REQUEST_OPTIONS
1705
1705
) ;
1706
- expect ( generateContentSpy . calls . allArgs ( ) [ 0 ] [ 8 ] . timeoutMillis ) . toEqual ( 0 ) ;
1706
+ expect ( generateContentSpy . calls . allArgs ( ) [ 0 ] [ 9 ] . timeoutMillis ) . toEqual ( 0 ) ;
1707
1707
} ) ;
1708
1708
it ( 'returns a StreamGenerateContentResponse and appends role if missing' , async ( ) => {
1709
1709
const req = 'How are you doing today?' ;
0 commit comments