mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-25 04:49:17 +00:00
community: replace deprecated davinci models (#14860)
This is technically a breaking change because it'll switch out default models from `text-davinci-003` to `gpt-3.5-turbo-instruct`, but OpenAI is shutting off those endpoints on 1/4 anyways. Feels less disruptive to switch out the default instead.
This commit is contained in:
@@ -7,7 +7,7 @@ from langchain.llms.openai import OpenAI
|
||||
|
||||
def test_react() -> None:
|
||||
"""Test functionality on a prompt."""
|
||||
llm = OpenAI(temperature=0, model_name="text-davinci-002")
|
||||
llm = OpenAI(temperature=0, model_name="gpt-3.5-turbo-instruct")
|
||||
react = ReActChain(llm=llm, docstore=Wikipedia())
|
||||
question = (
|
||||
"Author David Chanoff has collaborated with a U.S. Navy admiral "
|
||||
|
Reference in New Issue
Block a user