Skip to content

Commit db8b644

Browse files
stainless-botstainless-app[bot]
authored andcommitted
chore(internal): minor change to tests (#881)
1 parent 2818704 commit db8b644

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
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: 'string',
15+
model: 'tts-1',
1616
voice: 'alloy',
1717
response_format: 'mp3',
1818
speed: 0.25,

tests/api-resources/completions.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ const openai = new OpenAI({
1010

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

2326
test('create: required and optional params', async () => {
2427
const response = await openai.completions.create({
25-
model: 'string',
28+
model: 'gpt-3.5-turbo-instruct',
2629
prompt: 'This is a test.',
2730
best_of: 0,
2831
echo: true,

0 commit comments

Comments
 (0)