Skip to content

Commit c56d53d

Browse files
committed
redirect
1 parent b2994ab commit c56d53d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,11 @@ When you chat with a model, providing a history of the chat will help the model
387387

388388
#### Function Calling
389389

390-
Some Azure OpenAI models allow you to define [functions](../how-to/function-calling.md). If you specify both functions and data sources in the request, the model will decide if one or multiple functions is selected.
391-
1. If the model decides one or multiple functions is 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.
392-
1. Otherwise, if the model decides no function is selected, the functions are ignored and only the data sources are used for the answer. When the client is sending back the function execution result as the conversation history, the model always decides not to select functions.
390+
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.
391+
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.
392+
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.
393+
394+
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).
393395

394396
## Token usage estimation for Azure OpenAI On Your Data
395397

0 commit comments

Comments
 (0)