Skip to content

Commit b2994ab

Browse files
committed
f
1 parent e266e7f commit b2994ab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,11 @@ You can send a streaming request using the `stream` parameter, allowing data to
385385

386386
When you chat with a model, providing a history of the chat will help the model return higher quality results. You don't need to include the `context` property of the assistant messages in your API requests for better response quality. See [the API reference documentation](../references/on-your-data.md#examples) for examples.
387387

388+
#### Function Calling
389+
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.
388393

389394
## Token usage estimation for Azure OpenAI On Your Data
390395

0 commit comments

Comments
 (0)