ChatHuggingFace can not generate responses with fuctions binding by "bind_tools" #30453
Open
5 tasks done
Labels
investigate
Flagged for investigation.
Checked other resources
Example Code
my minimum code are here:
Error Message and Stack Trace (if applicable)
the code above has following outputs:
Description
as we can see above,
the model init tools with decroator '@' successfully as I print with
print(llm_with_tools)
afterbind_tools
method:but when I try to generate outputs using invoke method with
print(llm_with_tools.invoke(query))
we can find that the predefine functions
multiply
andadd
did not used as assuming, although the results are rightI just follow the tutorial here:
btw: I use
ChatHuggingFace
because I wanna init llm using local persist ckptI wonder if it is a bug for
ChatHuggingFace
I'd appreciate it if you could help me using
ChatHuggingFace
to implement realfunction call
System Info
my relevant package versions are as below:
if you need any else packages for this bug re-occur, please let me know
thanks anyway
The text was updated successfully, but these errors were encountered: