Ironclad / rivet

The open-source visual AI programming environment and TypeScript library
https://rivet.ironcladapp.com
MIT License
2.71k stars 237 forks source link

[Feature]: Support parallel function-calling for OpenAI GPT-4-turbo #311

Closed gogwilt closed 8 months ago

gogwilt commented 8 months ago

Feature Request

GPT-4-turbo now supports parallel function-calling, but the Chat Node "Function Call" output only returns a single function call. The Chat Node should support parallel function-calling.

To do this in a backwards-compatible fashion, we may want to add an option "parallel function calling," which creates a "function calls" array output (and removes the single "function call" output). Then, existing for chat nodes already using this port, the "parallel function calling" option will be false, and it will work as before.

And to make this forwards-compatible, we probably want to make parallel function calling default to "true."

Code of Conduct

abrenneke commented 8 months ago

Implemented in f1b90b12184523f1850e2ed4b9e99ab00e4b8ce6, your approach is the right one!