Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ async def api_home():
|
|
105 |
|
106 |
|
107 |
# Endpoint to start a new conversation thread
|
108 |
-
@app.post('/api/start_conversation')
|
109 |
async def start_conversation(request: Request):
|
110 |
data = await request.json()
|
111 |
prompt = data.get('prompt')
|
@@ -140,7 +140,7 @@ async def get_response(thread_id: int):
|
|
140 |
|
141 |
|
142 |
|
143 |
-
@app.post('/api/chat')
|
144 |
async def chat(request: Request):
|
145 |
data = await request.json()
|
146 |
prompt = data.get('prompt')
|
|
|
105 |
|
106 |
|
107 |
# Endpoint to start a new conversation thread
|
108 |
+
@app.post('/api/start_conversation/')
|
109 |
async def start_conversation(request: Request):
|
110 |
data = await request.json()
|
111 |
prompt = data.get('prompt')
|
|
|
140 |
|
141 |
|
142 |
|
143 |
+
@app.post('/api/chat/')
|
144 |
async def chat(request: Request):
|
145 |
data = await request.json()
|
146 |
prompt = data.get('prompt')
|