Skip to content

Commit f9094da

Browse files
committed
Clean up README. Chat requires authenticated user
1 parent e532335 commit f9094da

2 files changed

Lines changed: 2 additions & 16 deletions

File tree

README.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ DB_PASSWORD=password
2121
GEMINI_API_KEY=<api key>
2222
```
2323

24-
### Clean up pipenv
25-
26-
- `pipenv --rm`
27-
- `pipenv --clear`
28-
- `pipenv lock --clear --verbose`
29-
3024
### Setup new uv
3125

3226
```
@@ -38,16 +32,6 @@ $ uv venv
3832

3933
- This project uses PostgreSQL database with SQLAlchemy ORM with marshmallow for object SerDes.
4034

41-
## Install python modules
42-
43-
```
44-
$ uv pip install --python=/path/to/python
45-
$ cd src
46-
$ uv pip install --python=/path/to/python
47-
$ cd test
48-
$ uv pip install --python=/path/to/python
49-
```
50-
5135
## Create Database
5236

5337
- Firstly, create an empty database "library" in PostgreSQL

src/controllers/ChatController.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def inject_now():
3838

3939
@chat_api.get("/")
4040
@chat_api.get("/index")
41+
@Authentication.auth_required("chat.index")
4142
async def index() -> ResponseReturnValue:
4243
logging.info(f"\n=== /chat/index ===")
4344
greeting = None
@@ -144,6 +145,7 @@ async def ProcessReceipt(image):
144145
return await Respond("chat.html", title="Welcome to LLM-RAG 💬", error="Invalid input!")
145146

146147
@chat_api.post("/invoke")
148+
@Authentication.auth_required("chat.invoke")
147149
async def invoke():
148150
"""
149151
Invoke the agent with user input to retrieve a final response.

0 commit comments

Comments
 (0)