Skip to content

Commit

Permalink
chore(internal): minor refactor of tests (#884)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Jun 6, 2024
1 parent 3530f16 commit 0b71f2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/api-resources/audio/speech.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: 'tts-1',
model: 'string',
voice: 'alloy',
response_format: 'mp3',
speed: 0.25,
Expand Down
7 changes: 2 additions & 5 deletions tests/api-resources/completions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ const openai = new OpenAI({

describe('resource completions', () => {
test('create: only required params', async () => {
const responsePromise = openai.completions.create({
model: 'gpt-3.5-turbo-instruct',
prompt: 'This is a test.',
});
const responsePromise = openai.completions.create({ model: 'string', prompt: 'This is a test.' });
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
Expand All @@ -25,7 +22,7 @@ describe('resource completions', () => {

test('create: required and optional params', async () => {
const response = await openai.completions.create({
model: 'gpt-3.5-turbo-instruct',
model: 'string',
prompt: 'This is a test.',
best_of: 0,
echo: true,
Expand Down

0 comments on commit 0b71f2b

Please sign in to comment.