Skip to content

Commit

Permalink
Merge pull request #15 from hoalongnatsu/patch-1
Browse files Browse the repository at this point in the history
Fix model text-davinci-003 has been deprecated
  • Loading branch information
avsthiago committed Jan 24, 2024
2 parents 390ae76 + 9678101 commit d70cff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kopylot/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def validate_token() -> None:
def ask_llm(prompt: str, temperature: float = 0.7, max_tokens: int = 2048) -> str:
validate_token()
response = openai.Completion.create(
engine="text-davinci-003",
engine="gpt-3.5-turbo-instruct",
prompt=prompt,
temperature=temperature,
max_tokens=max_tokens,
Expand Down

0 comments on commit d70cff8

Please sign in to comment.