Skip to content

Commit

Permalink
Replace depreciated text-davinci-002 (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuhlmueller authored Jun 15, 2024
2 parents 330bfae + a43d3d9 commit 8fc5d5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ice/agents/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class OpenAIAgent(Agent):

def __init__(
self,
model: str = "text-davinci-002",
model: str = "gpt-3.5-turbo-instruct",
temperature: float = 0.0,
top_p: float = 1.0,
):
Expand Down
2 changes: 1 addition & 1 deletion ice/apis/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ async def openai_complete(
stop: Optional[str] = "\n",
top_p: float = 1,
temperature: float = 0,
model: str = "text-davinci-002",
model: str = "gpt-3.5-turbo-instruct",
max_tokens: int = 256,
logprobs: Optional[int] = None,
logit_bias: Optional[Mapping[str, Union[int, float]]] = None,
Expand Down

0 comments on commit 8fc5d5c

Please sign in to comment.