@@ -376,7 +376,7 @@ describe('azure request building', () => {
376376 expect (
377377 await client . audio . translations . create ( {
378378 model,
379- file : { url : 'https://example.com' , blob : ( ) => 0 as any } ,
379+ file : { url : 'https://example.com' , blob : async ( ) => new Blob ( [ ] ) } ,
380380 } ) ,
381381 ) . toMatchObject ( {
382382 url : `https://example.com/openai/deployments/${ deployment } /audio/translations?api-version=${ apiVersion } ` ,
@@ -387,7 +387,7 @@ describe('azure request building', () => {
387387 expect (
388388 await client . audio . transcriptions . create ( {
389389 model,
390- file : { url : 'https://example.com' , blob : ( ) => 0 as any } ,
390+ file : { url : 'https://example.com' , blob : async ( ) => new Blob ( [ ] ) } ,
391391 } ) ,
392392 ) . toMatchObject ( {
393393 url : `https://example.com/openai/deployments/${ deployment } /audio/transcriptions?api-version=${ apiVersion } ` ,
@@ -432,7 +432,7 @@ describe('azure request building', () => {
432432 test ( 'handles files' , async ( ) => {
433433 expect (
434434 await client . files . create ( {
435- file : { url : 'https://example.com' , blob : ( ) => 0 as any } ,
435+ file : { url : 'https://example.com' , blob : async ( ) => new Blob ( [ ] ) } ,
436436 purpose : 'assistants' ,
437437 } ) ,
438438 ) . toMatchObject ( {
@@ -509,7 +509,7 @@ describe('azure request building', () => {
509509 expect (
510510 await client . audio . translations . create ( {
511511 model : deployment ,
512- file : { url : 'https://example.com' , blob : ( ) => 0 as any } ,
512+ file : { url : 'https://example.com' , blob : async ( ) => new Blob ( [ ] ) } ,
513513 } ) ,
514514 ) . toMatchObject ( {
515515 url : `https://example.com/openai/audio/translations?api-version=${ apiVersion } ` ,
@@ -520,7 +520,7 @@ describe('azure request building', () => {
520520 expect (
521521 await client . audio . transcriptions . create ( {
522522 model : deployment ,
523- file : { url : 'https://example.com' , blob : ( ) => 0 as any } ,
523+ file : { url : 'https://example.com' , blob : async ( ) => new Blob ( [ ] ) } ,
524524 } ) ,
525525 ) . toMatchObject ( {
526526 url : `https://example.com/openai/audio/transcriptions?api-version=${ apiVersion } ` ,
@@ -565,7 +565,7 @@ describe('azure request building', () => {
565565 test ( 'handles files' , async ( ) => {
566566 expect (
567567 await client . files . create ( {
568- file : { url : 'https://example.com' , blob : ( ) => 0 as any } ,
568+ file : { url : 'https://example.com' , blob : async ( ) => new Blob ( [ ] ) } ,
569569 purpose : 'assistants' ,
570570 } ) ,
571571 ) . toMatchObject ( {
0 commit comments