Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
chtrembl committed Sep 27, 2024
2 parents 455a6ff + d98878c commit 6020db7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,13 @@ <h1><a href="{{ "/" | absolute_url }}">{{ site.name | default: site.github.repos
<p>{{ site.description | default: site.github.project_tagline }}</p>

<p class="view"><a href="https://aka.ms/learn-about-containers-on-azure-with-chris" target="_blank">View my Microsoft Learn Module <small>https://aka.ms/learn-about-containers-on-azure-with-chris</small></a></p>


<p class="view"><a href="https://www.youtube.com/watch?v=lIeReNBNr48&t=201s" target="_blank">Watch my How to migrate Java Tomcat apps to Azure Video on YouTube <small>https://www.youtube.com/watch?v=lIeReNBNr48&t=201s</small></a></p>

<p class="view"><a href="https://www.youtube.com/watch?v=dDZorrTzk_Q&t=6s" target="_blank">Watch my How to Monitor Java Tomcat Apps on Azure App Service Video on YouTube <small>https://www.youtube.com/watch?v=dDZorrTzk_Q&t=6s</small></a></p>

<p class="view"><a href="https://www.youtube.com/watch?v=MTBzsHcIH_U" target="_blank">Watch my How to deploy Java Tomcat Apps with GitHub Actions to Azure Video on YouTube <small>https://www.youtube.com/watch?v=MTBzsHcIH_U</small></a></p>

{% if site.github.is_project_page %}
<p class="view"><a href="{{ site.github.repository_url }}" target="_blank">View Azure Pet Store on GitHub <small>{{ site.github.repository_nwo }}</small></a></p>
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6020db7

Please sign in to comment.