In the API today, we can force the model to call a particular function. Is it possible to provide a list of functions instead?
function_call:
{"name": "my_function"}
function_call:
{"names": ["my_function", "my_function_2"]}
thanks!
In the API today, we can force the model to call a particular function. Is it possible to provide a list of functions instead?
function_call:
{"name": "my_function"}
function_call:
{"names": ["my_function", "my_function_2"]}
thanks!
Not directly. The only solution I have found is to emulate a multi-function call.
Here is the topic for that: Emulated multi-function calls within one request
You can actually specify function_call: 'none'
and then specify on your prompt something like “you are an assistant that always replies with multiple function calls. Reply with straight JSON ready to be parsed.”. It works as expected.