Skip to content

Commit 49967b4

Browse files
authored
Merge pull request #117 from umangsehgal/umangsehgal_bing-grounding-fix
bing grounding fix for connection id variable
2 parents 188e21f + 1ba68a6 commit 49967b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

samples/microsoft/python/getting-started-agents/bing_grounding.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131

3232
# Retrieve endpoint, connection ID, and model deployment name from environment variables
3333
project_endpoint = os.environ["PROJECT_ENDPOINT"] # Ensure the PROJECT_ENDPOINT environment variable is set
34-
conn_id = os.environ["BING_CONNECTION_NAME"] # Ensure the BING_CONNECTION_NAME environment variable is set
34+
# Ensure the BING_CONNECTION_ID environment variable is set, following the format:
35+
#"/subscriptions/<sub-id>/resourceGroups/<your-rg-name>/providers/Microsoft.CognitiveServices/accounts/<your-ai-services-name>/projects/<your-project-name>/connections/<your-bing-connection-name>"
36+
conn_id = os.environ["BING_CONNECTION_ID"]
3537
model_deployment_name = os.environ["MODEL_DEPLOYMENT_NAME"] # Ensure the MODEL_DEPLOYMENT_NAME environment variable is set
3638

3739
# Initialize the AIProjectClient with the endpoint and credentials

0 commit comments

Comments
 (0)