Function Calling
Function calling on Tune Studio.
Function Calling
When making an API call, you can specify functions and let the model decide on the JSON output containing function arguments. The Chat Completions API doesn’t execute the function; it simply creates JSON data for you to use in calling the function within your code.
We support function calling for providers and models that do support function calling and this ensures a JSON parsable output in most cases.
Some example of providers that support function calling are:
- Anthropic
- OpenAI
- Open Router
- Mistral
[BETA] Json Mode (guided decoding)
Json Mode does not guarantee a json parsable output
Json mode is is a form of guided decoding where you supply the model with a json schema and instead of the model generating a complete messages it iterates of the json schema and tries to fill in the values for the key value pairs in a json.