-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LLMChain throwing error > value is not a valid #4281
Comments
Assuming that
Assuming that
LLMChain does not expect a string as See https://python.langchain.com/en/latest/modules/chains/getting_started.html |
Thank you @vanillechai |
System Info
I am getting an error when using LLMChain with openai model, here is the code :
the issue is with line :
error :
llm_chain = LLMChain(prompt=prompt, llm=llm)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pydantic\main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for LLMChain
prompt
value is not a valid dict (type=type_error.dict)
any idea to solve this ?
Who can help?
@hwchase17
@agola
Information
Related Components
Reproduction
Expected behavior
I should get a response from openai API
The text was updated successfully, but these errors were encountered: