Update app.py
Browse files
app.py
CHANGED
@@ -42,9 +42,9 @@ chat_service = ChatService(model_service, data_service, faq_service)
|
|
42 |
# API endpoints
|
43 |
@app.post("/api/chat")
|
44 |
async def chat_endpoint(
|
|
|
45 |
user_input: UserInput,
|
46 |
-
api_key: str = Depends(get_api_key)
|
47 |
-
background_tasks: BackgroundTasks
|
48 |
):
|
49 |
try:
|
50 |
response, updated_history, search_results = await chat_service.chat(
|
|
|
42 |
# API endpoints
|
43 |
@app.post("/api/chat")
|
44 |
async def chat_endpoint(
|
45 |
+
background_tasks: BackgroundTasks,
|
46 |
user_input: UserInput,
|
47 |
+
api_key: str = Depends(get_api_key)
|
|
|
48 |
):
|
49 |
try:
|
50 |
response, updated_history, search_results = await chat_service.chat(
|