Open
Description
model = ChatOpenAI(model="gpt-3.5-turbo")这步报错如下:
WARNING:langchain.chat_models.openai:WARNING! model is not default parameter.
model was transferred to model_kwargs.
Please confirm that model is what you intended.
ValidationError Traceback (most recent call last)
in <cell line: 4>()
2 from langchain.chains import ConversationalRetrievalChain
3
----> 4 model = ChatOpenAI(model="gpt-3.5-turbo")
5 qa = ConversationalRetrievalChain.from_llm(model,retriever=retriever)
/usr/local/lib/python3.10/dist-packages/pydantic/main.cpython-310-x86_64-linux-gnu.so in pydantic.main.BaseModel.init()
ValidationError: 1 validation error for ChatOpenAI
root
Parameters {'model'} should be specified explicitly. Instead they were passed in as part of model_kwargs
parameter. (type=value_error)
Metadata
Metadata
Assignees
Labels
No labels