Skip to content

Commit 8b24eaf

Browse files
authored
Merge pull request #2937 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to main to sync with https://github.com/MicrosoftDocs/azure-ai-docs (branch main)
2 parents 97cd1ee + 2be24e7 commit 8b24eaf

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def fetch_weather(location: str) -> str:
5858
weather_json = json.dumps({"weather": weather})
5959
return weather_json
6060

61-
# Statically defined user functions for fast reference
61+
# Statically defined user functions for fast reference
6262
user_functions: Set[Callable[..., Any]] = {
6363
fetch_weather,
6464
}
@@ -437,4 +437,4 @@ foreach (ThreadMessage threadMessage in messages)
437437
438438
## See also
439439
440-
* [Lean how to ground agents by using Bing Web Search](./bing-grounding.md)
440+
* [Lean how to ground agents by using Bing Web Search](./bing-grounding.md)

articles/machine-learning/how-to-connection.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -596,16 +596,16 @@ az ml connection create --file connection.yaml
596596

597597
# [Python SDK](#tab/python)
598598

599-
The following example creates an Azure Container Registry connection. A managed identity authenticates this connection:
599+
The following example creates an Azure Container Registry connection:
600600

601601
```python
602602
from azure.ai.ml.entities import WorkspaceConnection
603603
from azure.ai.ml.entities import UsernamePasswordConfiguration
604604

605605
# If using username/password, the name/password values should be url-encoded
606606
import urllib.parse
607-
username = urllib.parse.quote(os.environ["REGISTRY_USERNAME"], safe="")
608-
password = urllib.parse.quote(os.environ["REGISTRY_PASSWORD"], safe="")
607+
username = os.environ["REGISTRY_USERNAME"]
608+
password = os.environ["REGISTRY_PASSWORD"]
609609

610610
name = "my_acr_conn"
611611

@@ -717,7 +717,7 @@ az ml environment show --name my-env --version 1 --resource-group my-resource-gr
717717

718718
# [Python SDK](#tab/python)
719719

720-
The following example creates an Azure Container Registry connection. A managed identity authenticates this connection:
720+
The following example creates a Generic Container Registry connection:
721721

722722
```python
723723
import os
@@ -729,10 +729,8 @@ from azure.ai.ml.entities import UsernamePasswordConfiguration
729729
from azureml.core.conda_dependencies import CondaDependencies
730730
from azure.ai.ml import command
731731

732-
# If using username/password, the name/password values should be url-encoded
733-
import urllib.parse
734-
username = urllib.parse.quote(os.environ["REGISTRY_USERNAME"], safe="")
735-
password = urllib.parse.quote(os.environ["REGISTRY_PASSWORD"], safe="")
732+
username = os.environ["REGISTRY_USERNAME"]
733+
password = os.environ["REGISTRY_PASSWORD"]
736734

737735
# Enter details of AML workspace
738736
subscription_id = "<SUBSCRIPTION_ID>"

0 commit comments

Comments
 (0)