Function calling not working as expected when streaming
akshaylb opened this issue · 4 comments
akshaylb commented
Describe the bug
When using function calling along with streaming, function calls seem to be ignored as the model passes the function arguments in chunks.
To Reproduce
Steps to reproduce the behavior:
- Initialize an openai assistant with streaming set to
true
- Bind a function to the assistant
- Pass a prompt to invoke the function
Expected behavior
Function call chunks should be collected and call once complete.
akshaylb commented
Hi @henomis I have made a local fix for this issue with function calling.
I can raise a PR if you are open to it! 🙇🏻
Apologies if this was a working feature and I just haven't been using it correctly.
henomis commented
Yes, please, open a PR. 🚀