Skip to content

Commit 53fdfa0

Browse files
authored
Merge pull request #2088 from MicrosoftDocs/main
12/19/2024 PM Publish
2 parents 34757fc + 8e071aa commit 53fdfa0

22 files changed

+81
-42
lines changed

articles/ai-services/agents/how-to/tools/openapi-spec.md

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,29 @@ automated, and scalable API integrations that enhance the capabilities and effic
2727
describing HTTP APIs. This allows people to understand how an API works, how a sequence of APIs
2828
work together, generate client code, create tests, apply design standards, and more. Currently, we support 3 authentication types with the OpenAPI 3.0 specified tools: `anonymous`, `API key`, `managed identity`.
2929

30-
## Set up
30+
## Prerequisites
3131
1. Ensure you've completed the prerequisites and setup steps in the [quickstart](../../quickstart.md).
3232

33-
1. [optional]If your OpenAPI spec requires API key, you can store your API key in a `custom keys` connection and use `connection` authentication
33+
1. Check the OpenAPI spec for the following requirements:
34+
1. `operationId` should only contain letters, `-` and `_`. You can modify it to meet the requirement. We recommend using descriptive name to help models efficiently decide which function to use.
35+
36+
## Authenticating with API Key
37+
38+
1. Verify that the OpenAPI spec supports API keys: it has `securitySchemes` section and has one scheme of type `apiKey". An example would be:
39+
```json
40+
"securitySchemes": {
41+
"apiKeyHeader": {
42+
"type": "apiKey",
43+
"name": "x-api-key",
44+
"in": "header"
45+
}
46+
}
47+
```
48+
If the security schemes include multiple schemes, we recommend keeping only one of them.
49+
50+
1. Remove any parameter in the OpenAPI spec that needs API key, because API key will be stored and passed through a connection, as described later in this article.
51+
52+
1. Create a `custom keys` connection to store your API key.
3453

3554
1. Go to the [Azure AI Foundry portal](https://ai.azure.com/) and select the AI Project. Click **connected resources**.
3655
:::image type="content" source="../../media/tools/bing/project-settings-button.png" alt-text="A screenshot of the settings button for an AI project." lightbox="../../media/tools/bing/project-settings-button.png":::
@@ -46,9 +65,18 @@ work together, generate client code, create tests, apply design standards, and m
4665
:::image type="content" source="../../media/tools/bing/api-key-connection.png" alt-text="A screenshot of the custom keys selection for the AI project." lightbox="../../media/tools/bing/api-key-connection.png":::
4766

4867
1. Enter the following information
49-
- `key`: "key"
68+
- key: `name` of your security scheme. In this example, it should be `x-api-key`
69+
```json
70+
"securitySchemes": {
71+
"apiKeyHeader": {
72+
"type": "apiKey",
73+
"name": "x-api-key",
74+
"in": "header"
75+
}
76+
}
77+
```
5078
- value: YOUR_API_KEY
51-
- Connection name: `YOUR_CONNECTION_NAME` (You will use this connection name in the sample code below.)
79+
- Connection name: YOUR_CONNECTION_NAME (You will use this connection name in the sample code below.)
5280
- Access: you can choose either *this project only* or *shared to all projects*. Just make sure in the sample code below, the project you entered connection string for has access to this connection.
5381

5482
::: zone-end

articles/ai-studio/concepts/concept-model-distillation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to do distillation in Azure AI Foundry portal.
55
manager: scottpolly
66
ms.service: azure-ai-studio
77
ms.topic: how-to
8-
ms.date: 07/23/2024
8+
ms.date: 12/15/2024
99
ms.reviewer: vkann
1010
reviewer: anshirga
1111
ms.author: ssalgado

articles/ai-studio/concepts/concept-synthetic-data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to generate a synthetic dataset in Azure AI Foundry porta
55
manager: scottpolly
66
ms.service: azure-ai-studio
77
ms.topic: how-to
8-
ms.date: 07/23/2024
8+
ms.date: 12/15/2024
99
ms.reviewer: vkann
1010
reviewer: anshirga
1111
ms.author: ssalgado

articles/ai-studio/how-to/concept-data-privacy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ manager: scottpolly
66
ms.service: azure-ai-studio
77
ms.custom: references_regions, build-2024
88
ms.topic: conceptual
9-
ms.date: 10/29/2024
9+
ms.date: 12/19/2024
1010
ms.reviewer: shubhirajMsft
1111
ms.author: scottpolly
1212
author: s-polly

articles/ai-studio/how-to/fine-tune-model-llama.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to fine-tune Meta Llama models in Azure AI Foundry portal
55
manager: scottpolly
66
ms.service: azure-ai-studio
77
ms.topic: how-to
8-
ms.date: 7/23/2024
8+
ms.date: 12/16/2024
99
ms.reviewer: rasavage
1010
reviewer: shubhirajMsft
1111
ms.author: ssalgado

articles/ai-studio/how-to/fine-tune-phi-3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ manager: scottpolly
66
ms.service: azure-ai-studio
77
ms.custom:
88
ms.topic: how-to
9-
ms.date: 7/16/2024
9+
ms.date: 12/16/2024
1010
ms.author: ssalgado
1111
author: ssalgadodev
1212
---

articles/ai-studio/how-to/index-add.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.custom:
99
- build-2024
1010
- ignite-2024
1111
ms.topic: how-to
12-
ms.date: 5/21/2024
12+
ms.date: 12/11/2024
1313
ms.reviewer: estraight
1414
ms.author: ssalgado
1515
author: ssalgadodev
54 KB
Loading

articles/search/cognitive-search-attach-cognitive-services.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ Billing goes into effect when API calls to Azure AI services resources exceed 20
274274
275275
Keyless and key-based connections are used for billing, but not for enrichment operations' connections. For connections, a search service [connects over the internal network](search-security-overview.md#internal-traffic) to an Azure AI services resource that's located in the [same physical region](search-region-support.md). Most regions that offer Azure AI Search also offer other Azure AI services such as Language. If you attempt AI enrichment in a region that doesn't have both services, you'll see this message: "Provided key isn't a valid CognitiveServices type key for the region of your search service."
276276
277-
Indexers can be configured to run in a [private execution environment](search-howto-run-reset-indexers.md#indexer-execution) for dedicated processing using just the search nodes of your own search service. Even if you're using private execution environment, Azure AI Search still uses its internally provisioned Azure AI multiservice resource to perform all skill enrichments.
277+
Indexers can be configured to run in a [private execution environment](search-howto-run-reset-indexers.md#indexer-execution-environment) for dedicated processing using just the search nodes of your own search service. Even if you're using private execution environment, Azure AI Search still uses its internally provisioned Azure AI multiservice resource to perform all skill enrichments.
278278
279279
> [!NOTE]
280280
> Some built-in skills are based on non-regional Azure AI services (for example, the [Text Translation Skill](cognitive-search-skill-text-translation.md)). Using a non-regional skill means that your request might be serviced in a region other than the Azure AI Search region. For more information on non-regional services, see the [Azure AI services product by region](https://aka.ms/allinoneregioninfo) page.

articles/search/cognitive-search-defining-skillset.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ After the name and description, a skillset has four main properties:
7575

7676
Inside the skillset definition, the skills array specifies which skills to execute. Three to five skills are common, but you can add as many skills as necessary, subject to [service limits](search-limits-quotas-capacity.md#indexer-limits).
7777

78-
The end result of an enrichment pipeline is textual content in either a search index or a knowledge store. For this reason, most skills either create text from images (OCR text, captions, tags), or analyze existing text to create new information (entities, key phrases, sentiment). Skills that operate independently are processed in parallel. Skills that depend on each other specify the output of one skill (such as key phrases) as the input of a second skill (such as text translation). The search service determines the order of skill execution and the execution environment.
78+
The end result of an enrichment pipeline is textual content in either a search index or a knowledge store. For this reason, most skills either create text from images (OCR text, captions, tags), or analyze existing text to create new information (entities, key phrases, sentiment). Skills that operate independently are processed in parallel. Skills that depend on each other specify the output of one skill (such as key phrases) as the input of a second skill (such as text translation). The search service determines the order of skill execution and the [execution environment](search-howto-run-reset-indexers.md#indexer-execution-environment).
7979

8080
All skills have a type, context, inputs, and outputs. A skill might optionally have a name and description. The following example shows two unrelated [built-in skills](cognitive-search-predefined-skills.md) so that you can compare the basic structure.
8181

0 commit comments

Comments
 (0)