Fix Azure OpenAI API Version
Problem Description
The dev environment is configured to use the gpt-4o model with Azure OpenAI API version 2024-02-15-preview. This API version is outdated and does not support gpt-4o (which requires version 2024-05-13 or later). This causes the Azure Function to fail when communicating with Azure OpenAI.
The qa and main environments are already correctly configured with 2024-08-01-preview
Proposed Changes
Infrastructure
[MODIFY]
infra/variables.tf
Update azure_openai_api_version for the dev environment from 2024-02-15-preview to 2024-08-01-preview.
Verification Plan
Automated Tests
None possible locally (infrastructure change).
Manual Verification
Commit and push the changes to the dev branch.
Ensure the deploy-infra GitHub Action workflow runs successfully to apply the App Settings update.
Once deployed, the user should retry the chat in the frontend (Dev environment).
Optionally, check Application Insights logs for successful calls to Azure OpenAI.