Skip to content

Commit

Permalink
updating to new prompty format, az login and corrs for aca.
Browse files Browse the repository at this point in the history
  • Loading branch information
marlenezw committed Aug 14, 2024
1 parent 3062217 commit a490b94
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"forwardPorts": [
5173,
8080
8000

]
}
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,20 @@ A related option is VS Code Dev Containers, which will open the project in your
Once you've opened the project in [Codespaces](#github-codespaces), [Dev Containers](#vs-code-dev-containers), or [locally](#local-environment), you can deploy it to Azure.

1. Sign in to your Azure account:
1. Sign in to your Azure account. You'll need to login to both the Azure Developer CLI and Azure CLI:
i. First with Azure Developer CLI
```shell
azd auth login
```
ii. Then sign in with Azure CLI
```shell
az login --use-device-code
```
If you have any issues with that command, you may also want to try `azd auth login --use-device-code`.
This will create a folder under `.azure/` in your project to store the configuration for this deployment. You may have multiple azd environments if desired.
Expand Down
4 changes: 3 additions & 1 deletion src/api/agents/researcher/researcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
from pathlib import Path
from dotenv import load_dotenv
import prompty
import prompty.azure
from prompty.azure.processor import ToolCall
from prompty.tracer import trace
from prompty.processors import ToolCall
# from prompty.azure.processors import ToolCall

load_dotenv()

Expand Down
4 changes: 2 additions & 2 deletions src/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
if code_space:
origin_8000= f"https://{code_space}-8000.app.github.dev"
origin_5173 = f"https://{code_space}-5173.app.github.dev"
origins = [origin_8000, origin_5173]
origins = [origin_8000, origin_5173, os.getenv("API_SERVICE_ACA_URI"), os.getenv("WEB_SERVICE_ACA_URI")]
else:
origins = [
o.strip()
for o in Path(Path(__file__).parent / "origins.txt").read_text().splitlines()
]
origins = ["*"]
origins = ['*']

app.add_middleware(
CORSMiddleware,
Expand Down

0 comments on commit a490b94

Please sign in to comment.