Skip to content

Commit

Permalink
changed the old model to the new updated model
Browse files Browse the repository at this point in the history
davinci-codex replaced by code-davinci-002
  • Loading branch information
Rahul-s-007 authored Mar 25, 2023
1 parent 07ce314 commit e936b28
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def check_if_not_null(query):
# Done
def pass_prompt_to_ai_fix_error_func(prompt):
response = openai.Completion.create(
engine = "davinci-codex",
engine = "code-davinci-002",
max_tokens = 512,
prompt = prompt,
temperature = 0, # Risk taking ability - 0
Expand All @@ -44,7 +44,7 @@ def fix_error_func(query,inp_lang):
# Done
def pass_prompt_to_ai_opt_code_func(prompt):
response = openai.Completion.create(
engine = "davinci-codex",
engine = "code-davinci-002",
max_tokens = 512,
prompt = prompt,
temperature = 0, # Risk taking ability - 0
Expand All @@ -68,7 +68,7 @@ def opt_code_func(query,inp_lang):
# Done
def pass_prompt_to_ai_promt_to_code_func(prompt):
response = openai.Completion.create(
engine = "davinci-codex",
engine = "code-davinci-002",
max_tokens = 512,
prompt = prompt,
temperature = 0, # Risk taking ability - 0
Expand All @@ -92,7 +92,7 @@ def promt_to_code_func(query):
# Done
def pass_prompt_to_ai_explain_code_func(prompt):
response = openai.Completion.create(
engine = "davinci-codex",
engine = "code-davinci-002",
max_tokens = 512,
prompt = prompt,
temperature = 0, # Risk taking ability - 0
Expand All @@ -117,7 +117,7 @@ def explain_code_func(query):
# Done
def pass_prompt_to_ai_convert_lang_func(prompt):
response = openai.Completion.create(
engine = "davinci-codex",
engine = "code-davinci-002",
max_tokens = 256,
prompt = prompt,
temperature = 0, # Risk taking ability - 0
Expand Down

0 comments on commit e936b28

Please sign in to comment.