diff --git a/.github/workflows/petstoreassistant_ci_cd_to_appservice.yml b/.github/workflows/petstoreassistant_ci_cd_to_appservice.yml index d3c14018..8c3328de 100644 --- a/.github/workflows/petstoreassistant_ci_cd_to_appservice.yml +++ b/.github/workflows/petstoreassistant_ci_cd_to_appservice.yml @@ -18,7 +18,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Update the application.properties hack because the app config injection isnt working for some reason - run: echo -n -e "MicrosoftAppId=${{ secrets.ASSISTANTAPPID }}\nMicrosoftAppPassword=${{ secrets.ASSISTANTAPPPASSWORD }}\nserver.port=3978\napim.key=${{ secrets.ASSISTANT_APIM_KEY }}\naoai.key=${{ secrets.ASSISTANT_AOAI_KEY }}\naoai.url=https://azurepetstoremeapim.azure-api.net\ncognitive.search.key=${{ secrets.ASSISTANT_CS_KEY }}\ncognitive.search.url=https://azurepetstoreaisearch.search.windows.net/indexes/azurepetstore-cosmosdb-products-index/docs/search?api-version=2023-11-01\ncosmos.key=${{ secrets.ASSISTANT_COSMOS_KEY }}" > petstore/petstoreassistant/src/main/resources/application.properties + run: echo -n -e "MicrosoftAppId=${{ secrets.ASSISTANTAPPID }}\nMicrosoftAppPassword=${{ secrets.ASSISTANTAPPPASSWORD }}\nserver.port=3978\napim.key=${{ secrets.ASSISTANT_APIM_KEY }}\naoai.key=${{ secrets.ASSISTANT_AOAI_KEY }}\naoai.url=https://azurepetstoremeapim.azure-api.net\ncognitive.search.key=${{ secrets.ASSISTANT_CS_KEY }}\ncognitive.search.url=https://azurepetstoreaisearch.search.windows.net/indexes/azurepetstore-cosmosdb-products-index/docs/search?api-version=2024-07-01\ncosmos.key=${{ secrets.ASSISTANT_COSMOS_KEY }}\nsubscriptionId=${{ secrets.SUBSCRIPTION_ID }}" > petstore/petstoreassistant/src/main/resources/application.properties - run: cat petstore/petstoreassistant/src/main/resources/application.properties - uses: azure/docker-login@v1 name: Build Docker image diff --git a/_layouts/default.html b/_layouts/default.html index aaf1e046..5e6ccebf 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -75,7 +75,13 @@
{{ site.description | default: site.github.project_tagline }}
View my Microsoft Learn Module https://aka.ms/learn-about-containers-on-azure-with-chris
- + + + + + + + {% if site.github.is_project_page %}View Azure Pet Store on GitHub {{ site.github.repository_nwo }}
{% endif %} diff --git a/petstore/petstoreassistant/src/main/java/com/chtrembl/petstoreassistant/service/AzureAIServices.java b/petstore/petstoreassistant/src/main/java/com/chtrembl/petstoreassistant/service/AzureAIServices.java index 6b0a8a01..a6e15dcc 100644 --- a/petstore/petstoreassistant/src/main/java/com/chtrembl/petstoreassistant/service/AzureAIServices.java +++ b/petstore/petstoreassistant/src/main/java/com/chtrembl/petstoreassistant/service/AzureAIServices.java @@ -35,17 +35,17 @@ public class AzureAIServices implements IAzureAIServices { @Value("classpath:json/azurerequests/classificationRequestBody.txt") private Resource classificationRequestBodyResource; String classificationRequestBodyString; - String CLASSIFICATION_URI = "/openai/deployments/azurepetstoreshoppingassistant/chat/completions?api-version=2024-02-15-preview"; + String CLASSIFICATION_URI = "/openai/deployments/azurepetstoreshoppingassistant/chat/completions?api-version=2024-06-01"; @Value("classpath:json/azurerequests/azurepetstoredataCompletionRequestBody.txt") private Resource azurepetstoredataCompletionRequestBodyResource; String azurepetstoredataCompletionRequestBodyString; - String COMPLETION_URI = "/openai/deployments/azurepetstoreshoppingassistant/extensions/chat/completions?api-version=2024-02-15-preview"; + String COMPLETION_URI = "/openai/deployments/azurepetstoreshoppingassistant/extensions/chat/completions?api-version=2024-06-01"; @Value("classpath:json/azurerequests/chatgpt4completionRequestBody.txt") private Resource chatgpt4CompletionRequestBodyResource; String chatgpt4CompletionRequestBodyString; - String CHATGPT4_COMPLETION_URI = "/openai/deployments/azurepetstoreshoppingassistant/chat/completions?api-version=2024-02-15-preview"; + String CHATGPT4_COMPLETION_URI = "/openai/deployments/azurepetstoreshoppingassistant/chat/completions?api-version=2024-06-01"; @Value("classpath:json/azurerequests/semanticSearchRequestBody.txt") private Resource semanticSearchRequestBodyBodyResource;