Skip to content

Commit 024c9b5

Browse files
committed
removing api version from samples
1 parent d6dd847 commit 024c9b5

File tree

7 files changed

+13
-20
lines changed

7 files changed

+13
-20
lines changed

articles/ai-foundry/agents/how-to/connected-agents.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: cognitive-services
66
manager: nitinme
77
ms.service: azure
88
ms.topic: how-to
9-
ms.date: 06/04/2025
9+
ms.date: 07/11/2025
1010
author: aahill
1111
ms.author: aahi
1212
recommendations: false
@@ -237,7 +237,6 @@ To create a multi-agent setup, follow these steps:
237237
project_client = AIProjectClient(
238238
endpoint=os.environ["PROJECT_ENDPOINT"],
239239
credential=DefaultAzureCredential(),
240-
api_version="latest",
241240
)
242241
```
243242

articles/ai-foundry/agents/how-to/tools/azure-ai-search-samples.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: cognitive-services
66
manager: nitinme
77
ms.service: azure-ai-agent-service
88
ms.topic: how-to
9-
ms.date: 06/30/2025
9+
ms.date: 07/11/2025
1010
author: aahill
1111
ms.author: aahi
1212
ms.custom: azure-ai-agents
@@ -48,8 +48,7 @@ project_endpoint = os.environ["PROJECT_ENDPOINT"]
4848
# Initialize the AIProjectClient
4949
project_client = AIProjectClient(
5050
endpoint=project_endpoint,
51-
credential=DefaultAzureCredential(exclude_interactive_browser_credential=False),
52-
api_version="latest",
51+
credential=DefaultAzureCredential(exclude_interactive_browser_credential=False)
5352
)
5453
```
5554

articles/ai-foundry/agents/how-to/tools/azure-functions-samples.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: azure-ai-agent-service
66
manager: nitinme
77
ms.service: azure-ai-agent-service
88
ms.topic: how-to
9-
ms.date: 05/20/2025
9+
ms.date: 07/11/2025
1010
author: aahill
1111
ms.author: aahi
1212
ms.custom: azure-ai-agents
@@ -101,8 +101,7 @@ Next, create an AI project client and then create an agent, attaching the Azure
101101
# Initialize the AIProjectClient
102102
project_client = AIProjectClient(
103103
endpoint=os.environ["PROJECT_ENDPOINT"],
104-
credential=DefaultAzureCredential(),
105-
api_version="latest",
104+
credential=DefaultAzureCredential()
106105
)
107106
# Create an agent with the Azure Function tool
108107
agent = project_client.agents.create_agent(

articles/ai-foundry/agents/how-to/tools/bing-code-samples.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: cognitive-services
66
manager: nitinme
77
ms.service: azure-ai-agent-service
88
ms.topic: how-to
9-
ms.date: 06/17/2025
9+
ms.date: 07/11/2025
1010
author: aahill
1111
ms.author: aahi
1212
zone_pivot_groups: selection-bing-grounding-code
@@ -64,8 +64,7 @@ project_endpoint = os.environ["PROJECT_ENDPOINT"] # Ensure the PROJECT_ENDPOINT
6464
# Create an AIProjectClient instance
6565
project_client = AIProjectClient(
6666
endpoint=project_endpoint,
67-
credential=DefaultAzureCredential(), # Use Azure Default Credential for authentication
68-
api_version="latest",
67+
credential=DefaultAzureCredential() # Use Azure Default Credential for authentication
6968
)
7069
```
7170

articles/ai-foundry/agents/how-to/tools/file-search-upload-files.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: cognitive-services
66
manager: nitinme
77
ms.service: azure-ai-agent-service
88
ms.topic: how-to
9-
ms.date: 07/02/2025
9+
ms.date: 07/11/2025
1010
author: aahill
1111
ms.author: aahi
1212
zone_pivot_groups: selection-bing-grounding-code
@@ -58,8 +58,7 @@ project_endpoint = os.environ["PROJECT_ENDPOINT"] # Ensure the PROJECT_ENDPOINT
5858
# Initialize the AIProjectClient
5959
project_client = AIProjectClient(
6060
endpoint=project_endpoint,
61-
credential=DefaultAzureCredential(exclude_interactive_browser_credential=False), # Use Azure Default Credential for authentication
62-
api_version="latest",
61+
credential=DefaultAzureCredential(exclude_interactive_browser_credential=False) # Use Azure Default Credential for authentication
6362
)
6463
```
6564

articles/ai-foundry/agents/how-to/tools/function-calling.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: cognitive-services
66
manager: nitinme
77
ms.service: azure-ai-agent-service
88
ms.topic: how-to
9-
ms.date: 06/30/2025
9+
ms.date: 07/11/2025
1010
author: aahill
1111
ms.author: aahi
1212
zone_pivot_groups: selection-function-calling
@@ -77,8 +77,7 @@ project_endpoint = os.environ["PROJECT_ENDPOINT"]
7777
# Initialize the AIProjectClient
7878
project_client = AIProjectClient(
7979
endpoint=project_endpoint,
80-
credential=DefaultAzureCredential(),
81-
api_version="latest",
80+
credential=DefaultAzureCredential()
8281
)
8382

8483
# Initialize the FunctionTool with user-defined functions

articles/ai-foundry/agents/how-to/tools/logic-apps.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: cognitive-services
66
manager: nitinme
77
ms.service: azure-ai-agent-service
88
ms.topic: how-to
9-
ms.date: 05/07/2025
9+
ms.date: 07/11/2025
1010
author: aahill
1111
ms.author: aahi
1212
ms.reviewer: umangsehgal
@@ -68,8 +68,7 @@ from azure.identity import DefaultAzureCredential
6868
# Initialize the AIProjectClient
6969
project_client = AIProjectClient(
7070
endpoint=os.environ["PROJECT_ENDPOINT"],
71-
credential=DefaultAzureCredential(),
72-
api_version="latest",
71+
credential=DefaultAzureCredential()
7372
)
7473
```
7574

0 commit comments

Comments
 (0)