CreateCompletionAsStream second call with multiple tools #539
Replies: 2 comments
-
Hi, I had the same problem. The main culprit is the lack of error handling in the streaming endpoint. I have provided a PR for that and also added a test: https://github.com/betalgo/openai/pull/558/files#diff-245fcbf46eb07eda0cbf0d53ba3842fb93c3dc2f7a7c604b118030e73adfaacc So what you have to do:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
this should be resolved in 8.2.2 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
i've an issue with CreateCompletionAsStream and parallel function.
my code is like that.
With only a function called, the second stream working fine, but if i have two tools called, it respond only withe the first result.
i've found this guide on the official site: https://platform.openai.com/docs/guides/function-calling
they wrote to add the function called to the messagges and add a messagge with the result with role "tool"
SO i tried to modify my code like the example.
in this case, the second call return only a empty value.
i cannot understand how to do this stuff!
Any advice?
Beta Was this translation helpful? Give feedback.
All reactions