File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -492,7 +492,6 @@ const _deployments_endpoints = new Set([
492
492
'/audio/translations' ,
493
493
'/audio/speech' ,
494
494
'/images/generations' ,
495
- '/batches' ,
496
495
] ) ;
497
496
498
497
const API_KEY_SENTINEL = '<Missing Key>' ;
Original file line number Diff line number Diff line change @@ -290,15 +290,15 @@ describe('azure request building', () => {
290
290
fetch : testFetch ,
291
291
} ) ;
292
292
293
- test ( 'handles Batch ' , async ( ) => {
293
+ test ( 'handles batch ' , async ( ) => {
294
294
expect (
295
295
await client . batches . create ( {
296
296
completion_window : '24h' ,
297
297
endpoint : '/v1/chat/completions' ,
298
298
input_file_id : 'file-id' ,
299
299
} ) ,
300
300
) . toStrictEqual ( {
301
- url : `https://example.com/openai/deployments/ ${ deployment } / batches?api-version=${ apiVersion } ` ,
301
+ url : `https://example.com/openai/batches?api-version=${ apiVersion } ` ,
302
302
} ) ;
303
303
} ) ;
304
304
@@ -423,7 +423,7 @@ describe('azure request building', () => {
423
423
fetch : testFetch ,
424
424
} ) ;
425
425
426
- test ( 'Batch is not handled ' , async ( ) => {
426
+ test ( 'handles batch ' , async ( ) => {
427
427
expect (
428
428
await client . batches . create ( {
429
429
completion_window : '24h' ,
You can’t perform that action at this time.
0 commit comments