Skip to content

Commit

Permalink
fix: add chat in the function to fix 'No overload matches this call.
Browse files Browse the repository at this point in the history
  • Loading branch information
gateremark committed Jan 16, 2024
1 parent b234974 commit 1fba6fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/docs/guides/providers/openai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export async function POST(req: Request) {
const { prompt } = await req.json();

// Ask OpenAI for a streaming completion given the prompt
const response = await openai.completions.create({
const response = await openai.chat.completions.create({
model: 'gpt-3.5-turbo-instruct',
max_tokens: 2000,
stream: true,
Expand Down

0 comments on commit 1fba6fe

Please sign in to comment.