Multiple Function Calls #456
-
What is the best way to handle a chat request that has multiple function calls and requires something of a for-loop? OpenAI's plugins show a great example of being able to accomplish this. https://platform.openai.com/docs/guides/gpt/function-calling
Screen.Recording.2023-08-16.at.1.10.48.PM.mov |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@MaxLeiter quick thought -- maybe a better function signature for
The reason for this change would be to return an OpenAI stream from the
and call the chat with the following request: |
Beta Was this translation helpful? Give feedback.
-
Have you seen https://sdk.vercel.ai/docs/guides/providers/openai-functions#recursive-function-calls? You can pass functions to your nested openai calls |
Beta Was this translation helpful? Give feedback.
Have you seen https://sdk.vercel.ai/docs/guides/providers/openai-functions#recursive-function-calls? You can pass functions to your nested openai calls