function_call and functions have been deprecated in favor of tools.
Use the tools parameter instead.Tool calling (recommended)
Constructing a training file
When constructing a training file of tool calling examples, take a function definition like this:.jsonl training file as below:
Optimize for cost
To use fewer prompt tokens after fine-tuning on full function definitions, experiment with the following strategies:Optimize for quality
To improve the quality of tool calling output, keep the function definitions in your fine-tuning training dataset and subsequent chat completion calls identical.Customize model responses to function outputs
You can also fine-tune on tool calling examples to improve the model’s response to function outputs. Include examples consisting of function response messages and assistant response messages where the function response is interpreted and put into context by the assistant..jsonl training file would be a single line:
Constructing a training file
When constructing a training file of function calling examples, take a function definition like this:.jsonl training file as below:
Optimize for cost
To use fewer prompt tokens after fine-tuning on full function definitions, experiment with the following strategies:Optimize for quality
To improve the quality of function calling output, keep the function definitions in your fine-tuning training dataset and subsequent chat completion calls identical.Customize model responses to function outputs
You can also fine-tune on function calling examples to improve the model’s response to function outputs. Include examples consisting of function response messages and assistant response messages where the function response is interpreted and put into context by the assistant..jsonl training file would be a single line:
Next steps
- Function calling fine-tuning scenarios.
- Explore the fine-tuning capabilities in the Azure OpenAI fine-tuning tutorial.
- Review fine-tuning model regional availability.