Skip to content

Commit deb6c5b

Browse files
committed
fix conflicts
2 parents be18cf7 + fb1490d commit deb6c5b

File tree

2 files changed

+10
-44
lines changed

2 files changed

+10
-44
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: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@
7979
# Add this near the top of your app.py, after initializing the app
8080
app.add_middleware(
8181
CORSMiddleware,
82-
allow_origins=[frontend_url],
82+
allow_origins=[
83+
frontend_url
84+
], # Allow all origins for development; restrict in production
8385
allow_credentials=True,
8486
allow_methods=["*"],
8587
allow_headers=["*"],
@@ -277,9 +279,7 @@ async def input_task_endpoint(input_task: InputTask, request: Request):
277279
r"Rate limit is exceeded\. Try again in (\d+) seconds?\.", error_msg
278280
)
279281
if match:
280-
error_msg = (
281-
f"Rate limit is exceeded. Try again in {match.group(1)} seconds."
282-
)
282+
error_msg = "Application temporarily unavailable due to quota limits. Please try again later."
283283

284284
track_event_if_configured(
285285
"InputTaskError",
@@ -298,7 +298,7 @@ async def input_task_endpoint(input_task: InputTask, request: Request):
298298
async def create_plan_endpoint(input_task: InputTask, request: Request):
299299
"""
300300
Create a new plan without full processing.
301-
301+
302302
---
303303
tags:
304304
- Plans
@@ -355,8 +355,8 @@ async def create_plan_endpoint(input_task: InputTask, request: Request):
355355
},
356356
)
357357
raise HTTPException(
358-
status_code=400,
359-
detail="Task description failed safety validation. Please revise your request."
358+
status_code=400,
359+
detail="Task description failed safety validation. Please revise your request.",
360360
)
361361

362362
# Get authenticated user
@@ -385,7 +385,7 @@ async def create_plan_endpoint(input_task: InputTask, request: Request):
385385
user_id=user_id,
386386
initial_goal=input_task.description,
387387
overall_status=PlanStatus.in_progress,
388-
source=AgentType.PLANNER.value
388+
source=AgentType.PLANNER.value,
389389
)
390390

391391
# Save the plan to the database

0 commit comments

Comments
 (0)