Skip to content

Commit fecf3ce

Browse files
Remove OpenAiEndpoint
1 parent 31ad63d commit fecf3ce

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

scripts/postprovision.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ if (-not $virtualMachineId) {
2222
Write-Host "2. Navigate to the scripts directory: cd $PSScriptRoot"
2323
Write-Host "3. Run the below commands to process & ingest the sample data:"
2424
Write-Host "Set-ExecutionPolicy RemoteSigned -Scope CurrentUser"
25-
Write-Host ".\process_sample_data.ps1 -SearchEndpoint '$env:AZURE_SEARCH_ENDPOINT' -OpenAiEndpoint '$env:AZURE_OPENAI_ENDPOINT' -ProjectEndpoint '$env:AZURE_AI_AGENT_ENDPOINT' -EmbeddingModelName '$env:EMBEDDING_MODEL_NAME' -EmbeddingModelApiVersion '2025-01-01-preview' -UseLocalFiles `$true"
25+
Write-Host ".\process_sample_data.ps1 -SearchEndpoint '$env:AZURE_SEARCH_ENDPOINT' -ProjectEndpoint '$env:AZURE_AI_AGENT_ENDPOINT' -EmbeddingModelName '$env:EMBEDDING_MODEL_NAME' -EmbeddingModelApiVersion '2025-01-01-preview' -UseLocalFiles `$true"
2626
} else {
2727
Write-Host "To ingest the sample data, follow these steps:"
2828
Write-Host "1. Login to the Virtual Machine using the username '$userName' and Password provided during deployment."
2929
Write-Host "2. Open the PowerShell terminal."
3030
Write-Host "3. Navigate to the scripts directory: cd C:\DataIngestionScripts"
3131
Write-Host "4. Run the following commands to process & ingest the sample data:"
32-
Write-Host "powershell -ExecutionPolicy Bypass -File process_sample_data.ps1 -SearchEndpoint '$env:AZURE_SEARCH_ENDPOINT' -OpenAiEndpoint '$env:AZURE_OPENAI_ENDPOINT' -ProjectEndpoint '$env:AZURE_AI_AGENT_ENDPOINT' -EmbeddingModelName '$env:EMBEDDING_MODEL_NAME' -EmbeddingModelApiVersion '2025-01-01-preview'"
32+
Write-Host "powershell -ExecutionPolicy Bypass -File process_sample_data.ps1 -SearchEndpoint '$env:AZURE_SEARCH_ENDPOINT' -ProjectEndpoint '$env:AZURE_AI_AGENT_ENDPOINT' -EmbeddingModelName '$env:EMBEDDING_MODEL_NAME' -EmbeddingModelApiVersion '2025-01-01-preview'"
3333
}

scripts/postprovision.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ if [ -z "$virtualMachineId" ]; then
1919
echo "1. Open the terminal."
2020
echo "2. Navigate to the scripts directory: cd $SCRIPT_DIR/scripts"
2121
echo "3. Run the following command to process the sample data:"
22-
echo "./process_sample_data.sh '$AZURE_SEARCH_ENDPOINT' '$AZURE_OPENAI_ENDPOINT' '$AZURE_AI_AGENT_ENDPOINT' '$EMBEDDING_MODEL_NAME' '2025-01-01-preview'"
22+
echo "./process_sample_data.sh '$AZURE_SEARCH_ENDPOINT' '$AZURE_AI_AGENT_ENDPOINT' '$EMBEDDING_MODEL_NAME' '2025-01-01-preview'"
2323
else
2424
echo "To ingest the sample data, follow these steps:"
2525
echo "1. Login to the Virtual Machine using the username '$userName' and Password provided during deployment."
2626
echo "2. Open the PowerShell terminal."
2727
echo "3. Navigate to the scripts directory: cd C:\\DataIngestionScripts"
2828
echo "4. Run the following command to process the sample data:"
29-
echo "powershell -ExecutionPolicy Bypass -File process_sample_data.ps1 -SearchEndpoint '$AZURE_SEARCH_ENDPOINT' -OpenAiEndpoint '$AZURE_OPENAI_ENDPOINT' -ProjectEndpoint '$AZURE_AI_AGENT_ENDPOINT' -EmbeddingModelName '$EMBEDDING_MODEL_NAME' -EmbeddingModelApiVersion '2025-01-01-preview'"
29+
echo "powershell -ExecutionPolicy Bypass -File process_sample_data.ps1 -SearchEndpoint '$AZURE_SEARCH_ENDPOINT' -ProjectEndpoint '$AZURE_AI_AGENT_ENDPOINT' -EmbeddingModelName '$EMBEDDING_MODEL_NAME' -EmbeddingModelApiVersion '2025-01-01-preview'"
3030
fi

scripts/process_sample_data.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
param (
22
[string]$SearchEndpoint,
3-
[string]$OpenAiEndpoint,
43
[string]$ProjectEndpoint,
54
[string]$EmbeddingModelName,
65
[string]$EmbeddingModelApiVersion,
@@ -60,7 +59,6 @@ Write-Host "Using Python command: $pythonExe"
6059

6160
# --- Set Environment Variables ---
6261
$env:SEARCH_ENDPOINT = $SearchEndpoint
63-
$env:OPEN_AI_ENDPOINT_URL = $OpenAiEndpoint
6462
$env:AZURE_AI_AGENT_ENDPOINT = $ProjectEndpoint
6563
$env:EMBEDDING_MODEL_NAME = $EmbeddingModelName
6664
$env:EMBEDDING_MODEL_API_VERSION = $EmbeddingModelApiVersion

scripts/process_sample_data.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ set -o pipefail
55

66
# --- Input Parameters ---
77
SearchEndpoint="$1"
8-
OpenAiEndpoint="$2"
9-
ProjectEndpoint="$3"
10-
EmbeddingModelName="$4"
11-
EmbeddingModelApiVersion="$5"
8+
ProjectEndpoint="$2"
9+
EmbeddingModelName="$3"
10+
EmbeddingModelApiVersion="$4"
1211

13-
if [ $# -ne 5 ]; then
14-
echo "Usage: $0 <SearchEndpoint> <OpenAiEndpoint> <ProjectEndpoint> <EmbeddingModelName> <EmbeddingModelApiVersion>"
12+
if [ $# -ne 4 ]; then
13+
echo "Usage: $0 <SearchEndpoint> <ProjectEndpoint> <EmbeddingModelName> <EmbeddingModelApiVersion>"
1514
exit 1
1615
fi
1716

@@ -44,7 +43,6 @@ echo "$PROCESS_DATA_SCRIPT" | tee -a "$LOG_FILE"
4443

4544
# --- Export environment variables ---
4645
export SEARCH_ENDPOINT="$SearchEndpoint"
47-
export OPEN_AI_ENDPOINT_URL="$OpenAiEndpoint"
4846
export AZURE_AI_AGENT_ENDPOINT="$ProjectEndpoint"
4947
export EMBEDDING_MODEL_NAME="$EmbeddingModelName"
5048
export EMBEDDING_MODEL_API_VERSION="$EmbeddingModelApiVersion"

0 commit comments

Comments
 (0)