Skip to content

Commit 17d2377

Browse files
committed
Added local development section
1 parent b326bb2 commit 17d2377

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,22 @@ As a web application, it is designed to serve multiple users on multiple browser
4141

4242
To achieve this, when users submit a message to the web server, the web server will create an agent, thread, and stream back a reply. The response contains `agent_id` and `thread_id` in cookies. As a result, each subsequent message sent to the web server will also contain these IDs. As long as the same agent is being used in the system and the thread can be retrieved in cookie, the same thread will be used to serve the users.
4343

44+
## Local development
45+
46+
1. Run `pip install -r requirements.txt`
47+
48+
2. Make sure that the `.env` file exists.
49+
50+
3. Store Azure AI Projects connection string in `.env` file as `PROJECT_CONNECTION_STRING`.
51+
4. Run `az login`
52+
53+
5. Start the services with this command:
54+
55+
```shell
56+
python -m quart --app src.quartapp run --port 50505 --reload
57+
```
58+
59+
6. Click 'http://localhost:50505' in the browser to run the application.
4460

4561
## Local development with Docker
4662

@@ -50,7 +66,7 @@ This sample includes a `docker-compose.yaml` for local development which creates
5066

5167
2. Make sure that the `.env` file exists.
5268

53-
3. Store a keys and endpoint information (Azure) for the OpenAI resource in the `.env` file. The key should be stored in the `.env` file as `PROJECT_CONNECTION_STRING`. This is necessary because Docker containers don't have access to your user Azure credentials.
69+
3. Store Azure AI Projects connection string in `.env` file as `PROJECT_CONNECTION_STRING`.
5470

5571
4. Start the services with this command:
5672

0 commit comments

Comments
 (0)