From 5e2d608ca9a2bcb3f261ad13c848d327b60b6fb1 Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Wed, 5 Jun 2024 05:33:40 -0400 Subject: [PATCH] chore(internal): minor change to tests (#881) --- tests/api-resources/audio/speech.test.ts | 2 +- tests/api-resources/completions.test.ts | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/api-resources/audio/speech.test.ts b/tests/api-resources/audio/speech.test.ts index 18302ce9a..3a7c22a29 100644 --- a/tests/api-resources/audio/speech.test.ts +++ b/tests/api-resources/audio/speech.test.ts @@ -12,7 +12,7 @@ describe('resource speech', () => { test.skip('create: required and optional params', async () => { const response = await openai.audio.speech.create({ input: 'string', - model: 'string', + model: 'tts-1', voice: 'alloy', response_format: 'mp3', speed: 0.25, diff --git a/tests/api-resources/completions.test.ts b/tests/api-resources/completions.test.ts index 3f6792447..3d64a509b 100644 --- a/tests/api-resources/completions.test.ts +++ b/tests/api-resources/completions.test.ts @@ -10,7 +10,10 @@ const openai = new OpenAI({ describe('resource completions', () => { test('create: only required params', async () => { - const responsePromise = openai.completions.create({ model: 'string', prompt: 'This is a test.' }); + const responsePromise = openai.completions.create({ + model: 'gpt-3.5-turbo-instruct', + prompt: 'This is a test.', + }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise; @@ -22,7 +25,7 @@ describe('resource completions', () => { test('create: required and optional params', async () => { const response = await openai.completions.create({ - model: 'string', + model: 'gpt-3.5-turbo-instruct', prompt: 'This is a test.', best_of: 0, echo: true,