Replies: 7 comments 2 replies
-
Will this be helpful? #1646 |
Beta Was this translation helpful? Give feedback.
-
Looks like the problem here in the https://github.com/hwchase17/langchainjs/blob/5661b2d07c1dd1ea2c2c8296a314d5cadcb52985/langchain/src/chat_models/openai.ts#L301 "functions" from Kwargs are overwriten each time. Need to have a check if functions param was passed in Kwargs |
Beta Was this translation helpful? Give feedback.
-
Nevertheless, looks like there is no any way to use functions through ConversationChain... |
Beta Was this translation helpful? Give feedback.
-
I've been having the same problem. This is the workaround we found. I doubt this is why the outputParser was added to langchain but it's useful in this case
The other problem I have is that in LLMChain I can't pass a role. It assumes it's always a chat between AI and Human. There doesn't seem to be a way to send a function response. We found a workaround but that one is even more of a hack than this one. I could potentially help by submitting a PR but given how deep this goes into the lib codebase I'd need some clarity on what is going to be potentially accepted. I feel that the fact that a chain only supports 2 roles (human and AI) and that it always assumes the reply will be plain text is an unavoidable part of the problem. |
Beta Was this translation helpful? Give feedback.
-
Is any solution found for this? Im trying to use function calling with ConversationChain but I cant get any docs or reference in which I can add function schema of function calls to the chain to have the feature implemented. |
Beta Was this translation helpful? Give feedback.
-
We are having the same issue. |
Beta Was this translation helpful? Give feedback.
-
Any updates on this or any useful workaround?? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not sure this was covered in docs already, but I'm stuck with how can I call any chain (for example conversationalchain) with functions?
I've found that some sort of calloptions could be used, but not found how. Also seems that modelKwargs cannot be used for that, because once I pass functions to this param, chain returns the response that doesn't involve functions at all.
Beta Was this translation helpful? Give feedback.
All reactions