Skip to content

Commit 7e86c40

Browse files
committed
fix
1 parent 00cf826 commit 7e86c40

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/ai-services/openai/concepts/use-your-data.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,11 +441,11 @@ When you chat with a model, providing a history of the chat will help the model
441441

442442
#### Function Calling
443443

444-
Some Azure OpenAI models allow you to define [functions](../how-to/function-calling.md). You can set up function calling through [REST API](../reference.md#chat-completions) `/chat/completions`. If you specify both functions and [data sources](../references/on-your-data.md#request-body) in the request, the model will decide none, one or multiple functions are selected.
445-
1. If the model decides one or multiple functions are selected, the response will contain the selected functions name and the arguments, so the client can execute the functions call at the client side. The data sources are ignored and only the model was used to select the functions.
446-
1. Otherwise, if the model decides no function is selected, the functions are ignored and only the data sources are used for generating the answer. When the client is sending back the functions execution result as the conversation history in the next request, the model always decides not to select functions.
444+
Some Azure OpenAI models allow you to define [tools and tool_choice parameters](../how-to/function-calling.md) to enable function calling. You can set up function calling through [REST API](../reference.md#chat-completions) `/chat/completions`. If both `tools` and [data sources](../references/on-your-data.md#request-body) are in the request, the following policy is applied.
445+
1. If `tool_choice` is `none`, the tools are ignored, and only the data sources are used to generate the answer.
446+
1. Otherwise, if `tool_choice` is not specified, or specified as `auto` or an object, the data sources are ignored, and the response will contain the selected functions name and the arguments, if any. Even if the model decides no function is selected, the data sources are still ignored.
447447

448-
If the above simple orchestration logic doesn't meet your need, please consider other options, for example: [prompt flow](/azure/machine-learning/prompt-flow/overview-what-is-prompt-flow) or [Assistants API](../how-to/assistant.md).
448+
If the policy above doesn't meet your need, please consider other options, for example: [prompt flow](/azure/machine-learning/prompt-flow/overview-what-is-prompt-flow) or [Assistants API](../how-to/assistant.md).
449449

450450
## Token usage estimation for Azure OpenAI On Your Data
451451

0 commit comments

Comments
 (0)