Skip to content

Commit

Permalink
docs: upgrade models in examples to latest version (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Dec 19, 2023
1 parent 19fd06b commit 88253e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ecosystem-tests/vercel-edge/src/pages/api/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default async (request: NextRequest) => {

const result = await openai.completions.create({
prompt: 'Say this is a test',
model: 'text-davinci-003',
model: 'gpt-3.5-turbo-instruct',
});
return NextResponse.json(result);
};
2 changes: 1 addition & 1 deletion ecosystem-tests/vercel-edge/src/pages/api/streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default async (request: NextRequest) => {

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

Expand Down
4 changes: 2 additions & 2 deletions examples/raw-response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async function main() {
const response = await client.completions
.create({
prompt: 'Say this is a test',
model: 'text-davinci-003',
model: 'gpt-3.5-turbo-instruct',
})
.asResponse();
console.log(`response headers: `, Object.fromEntries(response.headers.entries()));
Expand All @@ -23,7 +23,7 @@ async function main() {
const { data: completion, response } = await client.completions
.create({
prompt: 'Say this is a test',
model: 'text-davinci-003',
model: 'gpt-3.5-turbo-instruct',
})
.withResponse();
console.log(`response headers: `, Object.fromEntries(response.headers.entries()));
Expand Down

0 comments on commit 88253e6

Please sign in to comment.