Skip to content

Commit 0b71f2b

Browse files
committed
chore(internal): minor refactor of tests (#884)
1 parent 3530f16 commit 0b71f2b

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

tests/api-resources/audio/speech.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('resource speech', () => {
1212
test.skip('create: required and optional params', async () => {
1313
const response = await openai.audio.speech.create({
1414
input: 'string',
15-
model: 'tts-1',
15+
model: 'string',
1616
voice: 'alloy',
1717
response_format: 'mp3',
1818
speed: 0.25,

tests/api-resources/completions.test.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ const openai = new OpenAI({
1010

1111
describe('resource completions', () => {
1212
test('create: only required params', async () => {
13-
const responsePromise = openai.completions.create({
14-
model: 'gpt-3.5-turbo-instruct',
15-
prompt: 'This is a test.',
16-
});
13+
const responsePromise = openai.completions.create({ model: 'string', prompt: 'This is a test.' });
1714
const rawResponse = await responsePromise.asResponse();
1815
expect(rawResponse).toBeInstanceOf(Response);
1916
const response = await responsePromise;
@@ -25,7 +22,7 @@ describe('resource completions', () => {
2522

2623
test('create: required and optional params', async () => {
2724
const response = await openai.completions.create({
28-
model: 'gpt-3.5-turbo-instruct',
25+
model: 'string',
2926
prompt: 'This is a test.',
3027
best_of: 0,
3128
echo: true,

0 commit comments

Comments
 (0)