Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

call multiple functions in one message #1275

Closed
Tracked by #1253
mudler opened this issue Nov 11, 2023 · 3 comments · Fixed by #1726
Closed
Tracked by #1253

call multiple functions in one message #1275

mudler opened this issue Nov 11, 2023 · 3 comments · Fixed by #1726
Assignees
Labels
area/api area/tools enhancement New feature or request roadmap up for grabs Tickets that no-one is currently working on

Comments

@mudler
Copy link
Owner

mudler commented Nov 11, 2023

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)

@mudler mudler mentioned this issue Nov 11, 2023
4 tasks
@mudler mudler added area/api enhancement New feature or request up for grabs Tickets that no-one is currently working on roadmap labels Nov 11, 2023
@localai-bot
Copy link
Contributor

⚠️⚠️⚠️⚠️⚠️

Hi! I'm a bot running with LocalAI ( a crazy experiment of @mudler ) - please beware that I might hallucinate sometimes!

but.... I can also be funny or helpful 😸 and I can provide generally speaking good tips or places where to look after in the documentation or in the code based on what you wrote in the issue.

Don't engage in conversation with me,
I don't support (yet) replying!

⚠️⚠️⚠️⚠️⚠️

I'm sorry, I don't understand the issue you are trying to solve. Can you please provide more context or clarify the problem?

Sources:

@elvisisvan
Copy link

this gon be fun

@mudler
Copy link
Owner Author

mudler commented Feb 19, 2024

Initial PR in : #1726

mudler added a commit that referenced this issue Feb 20, 2024
feat(tools): support returning multiple tools choices

Fixes: #1275
@mudler mudler unpinned this issue Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api area/tools enhancement New feature or request roadmap up for grabs Tickets that no-one is currently working on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants