Skip to content

Commit 1aa103a

Browse files
committed
updating variables
1 parent ef99b47 commit 1aa103a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,9 @@ public class AgentExample {
577577
public static void main(String[] args) throws FileNotFoundException, URISyntaxException {
578578

579579
// variables for authenticating requests to the agent service
580-
String projectEndpoint = "https://aahi-may-resource.services.ai.azure.com/api/projects/aahi-may";//System.getenv("PROJECT_ENDPOINT");
581-
String modelName = "gpt-4o";//System.getenv("MODEL_DEPLOYMENT_NAME");
582-
String aiSearchConnectionId = "/subscriptions/1f790876-6c63-4bc6-9fc6-62780b3d3e05/resourceGroups/rg-aahi-8164/providers/Microsoft.CognitiveServices/accounts/aahi-may-resource/connections/aahisearchservice"; //System.getenv("AZURE_AI_CONNECTION_ID");
580+
String projectEndpoint = System.getenv("PROJECT_ENDPOINT");
581+
String modelName = System.getenv("MODEL_DEPLOYMENT_NAME");
582+
String aiSearchConnectionId = System.getenv("AZURE_AI_CONNECTION_ID");
583583
String indexName = "my-index";
584584

585585
PersistentAgentsClientBuilder clientBuilder = new PersistentAgentsClientBuilder().endpoint(projectEndpoint)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,8 +728,8 @@ public class AgentExample {
728728
public static void main(String[] args) throws FileNotFoundException, URISyntaxException {
729729

730730
// variables for authenticating requests to the agent service
731-
String projectEndpoint = "https://aahi-may-resource.services.ai.azure.com/api/projects/aahi-may";//System.getenv("PROJECT_ENDPOINT");
732-
String modelName = "gpt-4o";//System.getenv("MODEL_DEPLOYMENT_NAME");
731+
String projectEndpoint = System.getenv("PROJECT_ENDPOINT");
732+
String modelName = System.getenv("MODEL_DEPLOYMENT_NAME");
733733

734734
PersistentAgentsClientBuilder clientBuilder = new PersistentAgentsClientBuilder().endpoint(projectEndpoint)
735735
.credential(new DefaultAzureCredentialBuilder().build());

0 commit comments

Comments
 (0)