diff --git a/src/index.ts b/src/index.ts index 85453616..fdafabf3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -492,7 +492,6 @@ const _deployments_endpoints = new Set([ '/audio/translations', '/audio/speech', '/images/generations', - '/batches', ]); const API_KEY_SENTINEL = ''; diff --git a/tests/lib/azure.test.ts b/tests/lib/azure.test.ts index 32b59ae3..06ca1d46 100644 --- a/tests/lib/azure.test.ts +++ b/tests/lib/azure.test.ts @@ -290,7 +290,7 @@ describe('azure request building', () => { fetch: testFetch, }); - test('handles Batch', async () => { + test('handles batch', async () => { expect( await client.batches.create({ completion_window: '24h', @@ -298,7 +298,7 @@ describe('azure request building', () => { input_file_id: 'file-id', }), ).toStrictEqual({ - url: `https://example.com/openai/deployments/${deployment}/batches?api-version=${apiVersion}`, + url: `https://example.com/openai/batches?api-version=${apiVersion}`, }); }); @@ -423,7 +423,7 @@ describe('azure request building', () => { fetch: testFetch, }); - test('Batch is not handled', async () => { + test('handles batch', async () => { expect( await client.batches.create({ completion_window: '24h',