Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/ai/azure-ai-projects/.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# `https://<your-ai-services-account-name>.services.ai.azure.com/api/projects/<your-project-name>`
AZURE_AI_PROJECT_ENDPOINT=
AZURE_AI_MODEL_DEPLOYMENT_NAME=
AGENT_NAME=
AZURE_AI_AGENT_NAME=
CONVERSATION_ID=
CONNECTION_NAME=
AZURE_AI_PROJECTS_AZURE_SUBSCRIPTION_ID=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
Set these environment variables with your own values:
1) AZURE_AI_PROJECT_ENDPOINT - The Azure AI Project endpoint, as found in the Overview
page of your Microsoft Foundry portal.
2) AGENT_NAME - The name of an existing Agent in your Microsoft Foundry project.
2) AZURE_AI_AGENT_NAME - The name of an existing Agent in your Microsoft Foundry project.
3) CONVERSATION_ID - The ID of an existing Conversation associated with the Agent
"""

Expand All @@ -34,7 +34,7 @@

load_dotenv()

agent_name = os.environ["AGENT_NAME"]
agent_name = os.environ["AZURE_AI_AGENT_NAME"]
conversation_id = os.environ["CONVERSATION_ID"]

endpoint = os.environ["AZURE_AI_PROJECT_ENDPOINT"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
Set these environment variables with your own values:
1) AZURE_AI_PROJECT_ENDPOINT - The Azure AI Project endpoint, as found in the Overview
page of your Microsoft Foundry portal.
2) AGENT_NAME - The name of an existing Agent in your Microsoft Foundry project.
2) AZURE_AI_AGENT_NAME - The name of an existing Agent in your Microsoft Foundry project.
3) CONVERSATION_ID - The ID of an existing Conversation associated with the Agent
"""

Expand All @@ -36,7 +36,7 @@
load_dotenv()

endpoint = os.environ["AZURE_AI_PROJECT_ENDPOINT"]
agent_name = os.environ["AGENT_NAME"]
agent_name = os.environ["AZURE_AI_AGENT_NAME"]
conversation_id = os.environ["CONVERSATION_ID"]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"type": "azure_ai_evaluator",
"name": "violence_detection",
"evaluator_name": "builtin.violence",
"data_mapping": {"query": "{{item.query}}", "response": "{{item.response}}"},
"data_mapping": {"query": "{{item.query}}", "response": "{{sample.output_text}}"},
}
]
eval_object = openai_client.evals.create(
Expand Down
Loading