From 344ade585c996e966ffe0a43998dd5f6f25c3a8c Mon Sep 17 00:00:00 2001 From: tombyrn Date: Tue, 4 Apr 2023 11:10:44 -0400 Subject: [PATCH] api tweak --- chat-gpt.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chat-gpt.js b/chat-gpt.js index 17f6865..b9dc42d 100755 --- a/chat-gpt.js +++ b/chat-gpt.js @@ -16,15 +16,15 @@ const openai = new OpenAIApi(configuration); async function generateText() { const response = await openai.createCompletion({ - model: 'text-davinci-002', + model: 'text-davinci-003', prompt: prompt, temperature: 0, - max_tokens: 1000, + max_tokens: 1500, }); if(response.data.choices[0].text){ console.log('===================== Chat-GPT =====================') - console.log(response.data.choices[0].text) + console.log(response.data.choices[0].text.toString()) console.log('\n') } else{