Skip to content

call multiple functions in one message #1275

@mudler

Description

@mudler

https://platform.openai.com/docs/guides/function-calling/parallel-function-calling

From an implementation perspective, we need to force when generating the BNF to return an array instead of a single object, for instance:

root   ::= arr
value  ::= object | array | string | number | ("true" | "false" | "null") ws

arr  ::=
  "[\n" ws (
            value
    (",\n" ws value)*
  )? "]"

however, I'd probably mark this feature behind a flag (for either disabling or enabling it, depending on how well it behaves)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions