Does that mean that only the same function can be run multiples times in parallel as in the provided example? Or it is possibly somehow to force it to call two different functions?
You just leave it auto (default when there are tools) and let it decide. Are you trying to get it to call the same function, or different functions? From my tests it will call the same function in parallel but not different functions. To get it to call another function you have to pass the results of the first back in.
Any update? I’m trying to do the same thing, but have found the model can become quite “lazy” and inconsistent with it’s output.
E.g. sometimes it will carry out all the desired tool calls, and sometimes only one. Furthermore, I’ve found that the model often produces less content when it’s asked to carry out functions in parallel than when it’s asked to perform the calls individually, almost as if it’s trying to cut down on output tokens due to it having to produce more content at the one time.
As far as I’m aware, there’s nothing you can do with the tool calls param to resolve this.
Although the results have been better when using more advanced models however, and being very clear that it needs to call multiple functions, I’ve found the best solution for me has been to simply pass previous function calls in as context, and call the model for each subsequent function call with that context.
Perhaps finetuning could be the solution…
Let me know if you’ve found a solution for this though, as the quicker production times and reduced input tokens would definitely be welcome!