-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
AttributeError: 'OpenAI' object has no attribute 'kwargs' #1141
Comments
What's the drawback of using DSPy's OpenAI client? |
Hi @rohanprasadsap , Langchain’s OpenAI LM is currently not supported as a DSPy LM and will not inherit all the related properties needed to run DSPy pipelines with it. Feel free to share any particular use cases for using Langchain’s OpenAI LM over the current dspy.OpenAI LM and we can explore if any changes are needed! |
for me it was working you have to use dspy to initialize the llm like the below |
I am trying to use langchain's implementation of OpenAI instead of dspy's
I was getting my hands on with the Minimal work example. I have set up keys and other requirements. I have followed all the steps mentioned here.
My openai version is openai 1.30.4
When I compile and evaluate the model. I get this error:
Error:
AttributeError: 'OpenAI' object has no attribute 'kwargs'
What am I missing while defining the llm? How can I resolve this?
The text was updated successfully, but these errors were encountered: