Skip to content

Commit

Permalink
Update generate.ts
Browse files Browse the repository at this point in the history
swapping in "gpt-3.5-turbo-instruct" model in place of "text-davinci-003" as recommended on the OpenAI Deprecations page: https://platform.openai.com/docs/deprecations/2023-07-06-gpt-and-embeddings
  • Loading branch information
januff authored Dec 19, 2023
1 parent 84fbf9c commit aff3dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const handler = async (req: Request): Promise<Response> => {
}

const payload: OpenAIStreamPayload = {
model: "text-davinci-003",
model: "gpt-3.5-turbo-instruct",
prompt,
temperature: 0.7,
top_p: 1,
Expand Down

1 comment on commit aff3dd8

@vercel
Copy link

@vercel vercel bot commented on aff3dd8 Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.