Modernize dependencies: Azure AI SDKs to 2024-10-21 GA, Speech SDK 1.47.0, MUI v6#27
Open
Modernize dependencies: Azure AI SDKs to 2024-10-21 GA, Speech SDK 1.47.0, MUI v6#27
Conversation
Co-authored-by: rohit-lakhanpal <5094234+rohit-lakhanpal@users.noreply.github.com>
…entation Co-authored-by: rohit-lakhanpal <5094234+rohit-lakhanpal@users.noreply.github.com>
Co-authored-by: rohit-lakhanpal <5094234+rohit-lakhanpal@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update dependencies and adopt latest Azure AI SDKs
Modernize dependencies: Azure AI SDKs to 2024-10-21 GA, Speech SDK 1.47.0, MUI v6
Nov 13, 2025
Owner
|
Can you validate if these instructions to setup the env make sense any more given the move to using Azure AI Foundry instead of deploying individual services |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Summary
Updates dependencies from 2023 versions to November 2025 releases. Migrates to GA Azure AI SDKs, eliminates 18 API vulnerabilities, reduces UI vulnerabilities from 41 to 9 (dev-only).
Breaking Changes
Azure AI Language
@azure/ai-text-analytics→@azure/ai-language-text(1.1.0)Azure OpenAI
@azure/openaibeta (1.0.0-beta.5) → GA (2.0.0)OpenAIClient→AzureOpenAIclass with new method structureUI Dependencies
ReportHandler→Metric,getCLS()→onCLS()Environment Variables
Update
.envfiles:Other Updates
openaipackage (via langchain)rimrafwith nativefs.rmSecurity Impact
Documentation
docs/MIGRATION.md: Step-by-step migration guide with API comparisonsdocs/SECURITY.md: Detailed security assessmentCHANGELOG.md,README.md,.env-samplefilesPR Checklist
Original prompt
This section details on the original issue you should resolve
<issue_title>Update dependencies and adopt latest Azure AI SDKs for the AI Hackathon Starter Kit Overview</issue_title>
<issue_description>### Title
Update dependencies and adopt latest Azure AI SDKs for the AI Hackathon Starter Kit
Overview
The current AI Hackathon Starter Kit was built around mid‑2023, and many of its dependencies have since moved ahead. Updating the kit to the latest SDKs will ensure that it remains secure, maintainable and that developers can take advantage of new Azure AI features (e.g., new OpenAI API versions and newer Speech SDKs). For instance, the
microsoft‑cognitiveservices‑speech‑sdkpackage has progressed to version 1.47.0 as of November 2025:contentReference[oaicite:0]{index=0}, while the project is currently pinned to1.27.0. Azure OpenAI’s GA API version has also moved to2024‑10‑21, replacing the2024‑06‑01API:contentReference[oaicite:1]{index=1}. These are just two examples of the many updates that have occurred over the past two years. This issue tracks the work needed to modernize the repository.Goals
Audit and update all dependencies in the API and UI packages
npm outdatedor similar tools in bothsrc/apiandsrc/uito generate a list of outdated packages.@azure/ai-text-analyticshas been superseded by the new Azure AI Language Text SDK. Replace usages ofTextAnalyticsClientwith the correspondingTextAnalysisClientclasses and update calls accordingly.1.0.0-beta.5) to the latest GA release. Use the GA API version (2024‑10‑21) when calling Azure OpenAI:contentReference[oaicite:2]{index=2}. Remove the separateopenaipackage unless necessary and standardize on a single client library.microsoft‑cognitiveservices‑speech‑sdkto the latest version (currently1.47.0):contentReference[oaicite:3]{index=3} and refactor the speech components to use any new APIs (for example, improved real‑time transcription and voice‑style options).langchain>=0.1.x) and refactor any breaking API changes.expressto 5.x once it exits beta. Replacerimrafwith nativerm -rfcommands or Node 18+fs.rmwhere appropriate.react-scriptsto a modern build tool such as Vite or Next.js to benefit from better performance and modern bundling.Replace deprecated SDKs and adjust code
@azure/ai-text-analyticslibrary is now retired in favour of Azure AI Language. Follow Microsoft’s migration guide to replace this package; update sentiment analysis, entity recognition and PII detection calls accordingly.gpt‑4oandgpt‑5when available, and add configuration options for specifying the Azure OpenAI API version.1.27.0and1.47.0and refactor the transcription and text‑to‑speech code accordingly.Update configuration and environment files
.env-samplefiles for both API and UI and add any new environment variables required by updated SDKs (e.g.,AZURE_OPENAI_API_VERSIONorLANGUAGE_ENDPOINT). Remove obsolete variables.Modernize the codebase and adopt best practices
useEffectinstead ofcomponentDidMount).Expand sample use‑cases
docs/to...💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.