You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-bindings-openai.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,19 @@ You can add the preview extension by adding or replacing the following code in y
82
82
83
83
::: zone-end
84
84
85
+
## Application settings
86
+
87
+
To use the Azure OpenAI binding extension, you need to add one or more of these settings, which are used to connect to your OpenAI resource. During local development, you also need to add these settings to your `local.settings.json` file.
88
+
89
+
| Setting name | Description |
90
+
| ---- | ----- |
91
+
|**`AZURE_OPENAI_ENDPOINT`**| Required. Sets the endpoint of the OpenAI resource used by your bindings. |
92
+
|**`AZURE_OPENAI_KEY`**| Sets the key used to access an Azure OpenAI resource. |
93
+
|**`OPENAI_API_KEY`**| Sets the key used to access a non-Azure OpenAI resource. |
94
+
|**`AZURE_CLIENT_ID`**| Sets a user-assigned managed identity used to access the Azure OpenAI resource. |
95
+
96
+
For more information, see [Work with application settings](functions-how-to-use-azure-function-app-settings.md#settings).
97
+
85
98
<!---Include this section if there are any host.json settings defined by the extension:
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-scenarios.md
+33-11Lines changed: 33 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -137,29 +137,51 @@ public static async Task Run(
137
137
138
138
## Machine learning and AI
139
139
140
-
Besides data processing, Azure Functions can be used to infer on models.
140
+
Besides data processing, Azure Functions can be used to infer on models. The [Azure OpenAI binding extension](./functions-bindings-openai.md) lets easily integrate features and behaviors of the [Azure OpenAI service](../ai-services/openai/overview.md) into your function code executions.
141
141
142
-
For example, a function that calls a TensorFlow model or submits it to Azure AI services can process and classify a stream of images.
142
+
Functions can connect to an OpenAI resources to enable text and chat completions, use assistants, and leverage embeddings and semantic search.
143
143
144
-
Functions can also connect to other services to help process data and perform other AI-related tasks, like [text summarization](https://github.com/Azure-Samples/function-csharp-ai-textsummarize).
144
+
A function might also call a TensorFlow model or Azure AI services to process and classify a stream of images.
145
145
146
146
[](./media/functions-scenarios/machine-learning-and-ai-expanded.png#lightbox)
147
147
148
-
149
-
::: zone pivot="programming-language-csharp"
148
+
::: zone pivot="programming-language-csharp"
149
+
+ Tutorial: [Text completion using Azure OpenAI](functions-add-openai-text-completion.md?pivots=programming-language-csharp)
150
150
+ Sample: [Text summarization using AI Cognitive Language Service](https://github.com/Azure-Samples/function-csharp-ai-textsummarize)
151
-
::: zone-end
152
-
153
-
::: zone pivot="programming-language-javascript"
151
+
+ Sample: [Text completion using Azure OpenAI](https://github.com/Azure/azure-functions-openai-extension/tree/main/samples/textcompletion/csharp-ooproc)
152
+
+ Sample: [Provide assistant skills to your model](https://github.com/Azure/azure-functions-openai-extension/tree/main/samples/assistant/csharp-ooproc)
Copy file name to clipboardExpand all lines: articles/data-factory/connector-salesforce.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ ms.service: data-factory
8
8
ms.subservice: data-movement
9
9
ms.topic: conceptual
10
10
ms.custom: synapse
11
-
ms.date: 06/25/2024
11
+
ms.date: 07/11/2024
12
12
---
13
13
14
14
# Copy data from and to Salesforce using Azure Data Factory or Azure Synapse Analytics
@@ -210,8 +210,8 @@ To copy data from and to Salesforce, set the type property of the dataset to **S
210
210
| Property | Description | Required |
211
211
|:--- |:--- |:--- |
212
212
| type | The type property must be set to **SalesforceV2Object**. | Yes |
213
-
| objectApiName | The Salesforce object name to retrieve data from. | No for source (if "SOQLQuery" in source is specified), Yes for sink |
214
-
| reportId | The ID of the Salesforce report to retrieve data from. It isn't supported in sink. There are [limitations](https://developer.salesforce.com/docs/atlas.en-us.api_analytics.meta/api_analytics/sforce_analytics_rest_api_limits_limitations.htm) when you use reports. | No for source (if "SOQLQuery" in source is specified), not support sink |
213
+
| objectApiName | The Salesforce object name to retrieve data from. | No for source (if "query" in source is specified), Yes for sink |
214
+
| reportId | The ID of the Salesforce report to retrieve data from. It isn't supported in sink. There are [limitations](https://developer.salesforce.com/docs/atlas.en-us.api_analytics.meta/api_analytics/sforce_analytics_rest_api_limits_limitations.htm) when you use reports. | No for source (if "query" in source is specified), not support sink |
215
215
216
216
> [!IMPORTANT]
217
217
> The "__c" part of **API Name** is needed for any custom object.
@@ -248,7 +248,7 @@ To copy data from Salesforce, set the source type in the copy activity to **Sale
248
248
| Property | Description | Required |
249
249
|:--- |:--- |:--- |
250
250
| type | The type property of the copy activity source must be set to **SalesforceV2Source**. | Yes |
251
-
|SOQLQuery| Use the custom query to read data. You can only use [Salesforce Object Query Language (SOQL)](https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql.htm) query with limitations. For SOQL limitations, see this [article](https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/queries.htm#SOQL%20Considerations). If query isn't specified, all the data of the Salesforce object specified in "ObjectApiName/reportId" in dataset is retrieved. | No (if "ObjectApiName/reportId" in the dataset is specified) |
251
+
|query| Use the custom query to read data. You can only use [Salesforce Object Query Language (SOQL)](https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql.htm) query with limitations. For SOQL limitations, see this [article](https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/queries.htm#SOQL%20Considerations). If query isn't specified, all the data of the Salesforce object specified in "ObjectApiName/reportId" in dataset is retrieved. | No (if "ObjectApiName/reportId" in the dataset is specified) |
252
252
| includeDeletedObjects | Indicates whether to query the existing records, or query all records including the deleted ones. If not specified, the default behavior is false. <br>Allowed values: **false** (default), **true**. | No |
253
253
254
254
> [!IMPORTANT]
@@ -278,7 +278,7 @@ To copy data from Salesforce, set the source type in the copy activity to **Sale
278
278
"typeProperties": {
279
279
"source": {
280
280
"type": "SalesforceV2Source",
281
-
"SOQLQuery": "SELECT Col_Currency__c, Col_Date__c, Col_Email__c FROM AllDataType__c",
281
+
"query": "SELECT Col_Currency__c, Col_Date__c, Col_Email__c FROM AllDataType__c",
0 commit comments