Skip to content

Commit 88253e6

Browse files
committed
docs: upgrade models in examples to latest version (#585)
1 parent 19fd06b commit 88253e6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ecosystem-tests/vercel-edge/src/pages/api/response.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default async (request: NextRequest) => {
1616

1717
const result = await openai.completions.create({
1818
prompt: 'Say this is a test',
19-
model: 'text-davinci-003',
19+
model: 'gpt-3.5-turbo-instruct',
2020
});
2121
return NextResponse.json(result);
2222
};

ecosystem-tests/vercel-edge/src/pages/api/streaming.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default async (request: NextRequest) => {
1818

1919
const stream = await openai.completions.create({
2020
prompt: 'Say this is a test',
21-
model: 'text-davinci-003',
21+
model: 'gpt-3.5-turbo-instruct',
2222
stream: true,
2323
});
2424

examples/raw-response.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async function main() {
1111
const response = await client.completions
1212
.create({
1313
prompt: 'Say this is a test',
14-
model: 'text-davinci-003',
14+
model: 'gpt-3.5-turbo-instruct',
1515
})
1616
.asResponse();
1717
console.log(`response headers: `, Object.fromEntries(response.headers.entries()));
@@ -23,7 +23,7 @@ async function main() {
2323
const { data: completion, response } = await client.completions
2424
.create({
2525
prompt: 'Say this is a test',
26-
model: 'text-davinci-003',
26+
model: 'gpt-3.5-turbo-instruct',
2727
})
2828
.withResponse();
2929
console.log(`response headers: `, Object.fromEntries(response.headers.entries()));

0 commit comments

Comments
 (0)