Chris4K commited on
Commit
523292e
·
verified ·
1 Parent(s): e87c8f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(