Skip to content

Functions not called when i use langchain_openai.ChatOpenAI as llm #16139

Closed Answered by dosubot bot
Dovahkiin8625 asked this question in Q&A
Discussion options

You must be logged in to vote

🤖

Hello @Dovahkiin8625!

I'm Dosu, a friendly bot here to assist you in resolving issues, answering queries, and helping you contribute more efficiently to the LangChain project. While we're waiting for a human maintainer to join us, I'm here to make your coding journey smoother. Let's make some software magic together!

Based on the information you've provided, it seems like you're trying to use the functions parameter with the ChatOpenAI class. However, as per the issue #12415 in the LangChain repository, the functions parameter has been deprecated and is no longer recognized by OpenAI.

Instead, you should use the bind_functions method of the ChatOpenAI class to bind your functions to the…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Dovahkiin8625
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant