Skip to content

Commit 8697c6c

Browse files
Merge pull request microsoft#370 from microsoft/dev
fix: Update azure-ai-agents dependency to >=1.2.0b1 to resolve compatibility issues with latest SDK features
2 parents 3b8de8e + 725eb07 commit 8697c6c

File tree

4 files changed

+36
-47
lines changed

4 files changed

+36
-47
lines changed

docs/DeploymentGuide.md

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -206,43 +206,9 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain
206206

207207
5. Once the deployment has completed successfully, open the [Azure Portal](https://portal.azure.com/), go to the deployed resource group, find the App Service, and get the app URL from `Default domain`.
208208

209-
6. If you are done trying out the application, you can delete the resources by running `azd down`.
209+
6. When Deployment is complete, follow steps in [Set Up Authentication in Azure App Service](../docs/azure_app_service_auth_setup.md) to add app authentication to your web app running on Azure App Service
210210

211-
### Publishing Local Build Container to Azure Container Registry
212-
213-
If you need to rebuild the source code and push the updated container to the deployed Azure Container Registry, follow these steps:
214-
215-
1. Set the environment variable `USE_LOCAL_BUILD` to `True`:
216-
217-
- **Linux/macOS**:
218-
219-
```bash
220-
export USE_LOCAL_BUILD=True
221-
```
222-
223-
- **Windows (PowerShell)**:
224-
```powershell
225-
$env:USE_LOCAL_BUILD = $true
226-
```
227-
228-
2. Run the `az login` command
229-
230-
```bash
231-
az login
232-
```
233-
234-
3. Run the `azd up` command again to rebuild and push the updated container:
235-
```bash
236-
azd up
237-
```
238-
239-
This will rebuild the source code, package it into a container, and push it to the Azure Container Registry associated with your deployment.
240-
241-
This guide provides step-by-step instructions for deploying your application using Azure Container Registry (ACR) and Azure Container Apps.
242-
243-
There are several ways to deploy the solution. You can deploy to run in Azure in one click, or manually, or you can deploy locally.
244-
245-
When Deployment is complete, follow steps in [Set Up Authentication in Azure App Service](../docs/azure_app_service_auth_setup.md) to add app authentication to your web app running on Azure App Service
211+
7. If you are done trying out the application, you can delete the resources by running `azd down`.
246212

247213
# Local setup
248214

src/backend/app_kernel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
# Add this near the top of your app.py, after initializing the app
7575
app.add_middleware(
7676
CORSMiddleware,
77-
allow_origins=[frontend_url],
77+
allow_origins=[frontend_url], # Allow all origins for development; restrict in production
7878
allow_credentials=True,
7979
allow_methods=["*"],
8080
allow_headers=["*"],
@@ -269,7 +269,7 @@ async def input_task_endpoint(input_task: InputTask, request: Request):
269269
if "Rate limit is exceeded" in error_msg:
270270
match = re.search(r"Rate limit is exceeded\. Try again in (\d+) seconds?\.", error_msg)
271271
if match:
272-
error_msg = f"Rate limit is exceeded. Try again in {match.group(1)} seconds."
272+
error_msg = "Application temporarily unavailable due to quota limits. Please try again later."
273273

274274
track_event_if_configured(
275275
"InputTaskError",
@@ -279,7 +279,7 @@ async def input_task_endpoint(input_task: InputTask, request: Request):
279279
"error": str(e),
280280
},
281281
)
282-
raise HTTPException(status_code=400, detail=f"Error creating plan: {error_msg}") from e
282+
raise HTTPException(status_code=400, detail=f"{error_msg}") from e
283283

284284

285285
@app.post("/api/human_feedback")

src/backend/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dependencies = [
88
"azure-ai-evaluation>=1.5.0",
99
"azure-ai-inference>=1.0.0b9",
1010
"azure-ai-projects>=1.0.0b9",
11+
"azure-ai-agents>=1.2.0b1",
1112
"azure-cosmos>=4.9.0",
1213
"azure-identity>=1.21.0",
1314
"azure-monitor-events-extension>=0.1.0",

src/backend/uv.lock

Lines changed: 30 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)