From 8ed691f2e1d0d9c6001d790bc253366d6b2f4657 Mon Sep 17 00:00:00 2001 From: Yash Goenka Date: Wed, 18 Jan 2023 01:51:06 +0530 Subject: [PATCH] text-davinci-003 Updating to 'model="text-davinci-003"' from 'model="text-davinci-003"'. Immediately improves performance. *It can handle more complex instructions *Goes deeper into the task before failing --- natbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/natbot.py b/natbot.py index 634ac91..7245e30 100755 --- a/natbot.py +++ b/natbot.py @@ -557,7 +557,7 @@ def get_gpt_command(objective, url, previous_command, browser_content): prompt = prompt.replace("$url", url[:100]) prompt = prompt.replace("$previous_command", previous_command) prompt = prompt.replace("$browser_content", browser_content[:4500]) - response = openai.Completion.create(model="text-davinci-002", prompt=prompt, temperature=0.5, best_of=10, n=3, max_tokens=50) + response = openai.Completion.create(model="text-davinci-003", prompt=prompt, temperature=0.5, best_of=10, n=3, max_tokens=50) return response.choices[0].text def run_cmd(cmd):