Skip to content

Commit

Permalink
refactor: update template (#12397)
Browse files Browse the repository at this point in the history
  • Loading branch information
xzf0587 authored Sep 14, 2024
1 parent de7c383 commit dc9cdb4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ $AZURE_OPENAI_ENDPOINT = $config.Azure.OpenAIEndpoint
$Auzre_OpenAI_DEPLOYMENTNAME = $config.Azure.OpenAIDeploymentName

# check if OpenAI is enabled
if ($config.OpenAI -and !$OPENAI_API_KEY) {
Write-Error "OpenAI API Key is not provided in the $configPath file."
exit
if ($config.OpenAI) {
if (!$OPENAI_API_KEY) {
Write-Error "OpenAI API Key is not provided in the $configPath file."
exit
}
}
else {
# check if Azure OpenAI is enabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ provision:
# Path to manifest template
manifestPath: ./appPackage/manifest.json
outputZipPath: ./appPackage/build/appPackage.${{TEAMSFX_ENV}}.zip
outputJsonPath: ./appPackage/build/manifest.${{TEAMSFX_ENV}}.json
outputFolder: ./appPackage/build
# Validate app package using validation rules
- uses: teamsApp/validateAppPackage
with:
Expand Down

0 comments on commit dc9cdb4

Please sign in to comment.