Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alfrencho authored Jan 30, 2023
1 parent 1413759 commit 298c7ac
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,6 @@ const Home = () => {
},
body: JSON.stringify({ userInput }),
});

const data = await response.json();
const { output } = data;
console.log("OpenAI replied...", output.text)

setApiOutput(`${output.text}`);
setIsGenerating(false);
}
const baseCompletion = await openai.createCompletion({
model: 'text-davinci-003',
prompt: `${basePromptPrefix}${req.body.userInput}`,
temperature: 0.7,
max_tokens: 250,
});

const basePromptOutput = baseCompletion.data.choices.pop();

Expand Down

1 comment on commit 298c7ac

@vercel
Copy link

@vercel vercel bot commented on 298c7ac Jan 30, 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.