File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
samples/microsoft/python/getting-started-agents Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 3131
3232# Retrieve endpoint, connection ID, and model deployment name from environment variables
3333project_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" ]
3537model_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
You can’t perform that action at this time.
0 commit comments