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.
Purpose
This pull request introduces significant changes to the AI infrastructure and backend codebase, transitioning from the "AI Hub" model to the new "AI Foundry" model. Key changes include updates to resource definitions, configuration management, and dependencies to align with the new architecture. Below is a summary of the most important changes:
Infrastructure Updates
aiFoundry
andaiFoundryProject
ininfra/abbreviations.json
to support the updated naming conventions.infra/deploy_ai_foundry.bicep
andinfra/main.bicep
, including definitions foraiFoundryName
,aiFoundryProject
, and related properties. The previous AI Hub resources are now commented out. [1] [2]infra/main.bicep
to reflect the new AI Foundry model, includingaiFoundryName
,aiProjectName
, andprojectEndpointString
.Backend Configuration
AI_PROJECT_ENDPOINT
to the configuration class insrc/backend/common/config/config.py
to support the AI Foundry endpoint.AI_PROJECT_ENDPOINT
value for easier troubleshooting during development.Dependency Updates
semantic-kernel[azure]
to version1.32.2
and pinnedopenai
to version1.84.0
insrc/backend/requirements.txt
to ensure compatibility with the new AI Foundry model.azure-ai-projects
to version1.0.0b11
for access to the latest features and APIs.Code Refactoring
src/backend/sql_agents/agents/agent_base.py
to reflect changes in the Azure AI SDK, switching fromazure.ai.projects.models
toazure.ai.agents.models
.process_batch_async
function insrc/backend/sql_agents/process_batch.py
to use theAI_PROJECT_ENDPOINT
for creating anAzureAIAgent
client.Resource Management
infra/main.bicep
for AI Foundry resources, including the addition ofaiUserAccessProj
andaiUserAccessFoundry
for finer-grained role-based access control.These changes collectively enable the migration to the AI Foundry model, providing enhanced flexibility and improved resource management for AI projects.
Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information