@@ -232,10 +232,10 @@ async def process_request(
232232 authenticated_user = get_authenticated_user_details (request_headers = request .headers )
233233 user_id = authenticated_user ["user_principal_id" ]
234234 if not user_id :
235- track_event_if_configured (
236- "UserIdNotFound" , {"status_code" : 400 , "detail" : "no user" }
237- )
238- raise HTTPException (status_code = 400 , detail = "no user found" )
235+ track_event_if_configured (
236+ "UserIdNotFound" , {"status_code" : 400 , "detail" : "no user" }
237+ )
238+ raise HTTPException (status_code = 400 , detail = "no user found" )
239239 try :
240240 memory_store = await DatabaseFactory .get_database (user_id = user_id )
241241 user_current_team = await memory_store .get_current_team (user_id = user_id )
@@ -253,7 +253,7 @@ async def process_request(
253253 status_code = 400 ,
254254 detail = f"Error retrieving team configuration: { e } " ,
255255 ) from e
256-
256+
257257 if not await rai_success (input_task .description , team , memory_store ):
258258 track_event_if_configured (
259259 "RAI failed" ,
@@ -268,7 +268,6 @@ async def process_request(
268268 detail = "Request contains content that doesn't meet our safety guidelines, try again." ,
269269 )
270270
271-
272271 if not input_task .session_id :
273272 input_task .session_id = str (uuid .uuid4 ())
274273 try :
@@ -705,10 +704,10 @@ async def upload_team_config(
705704 authenticated_user = get_authenticated_user_details (request_headers = request .headers )
706705 user_id = authenticated_user ["user_principal_id" ]
707706 if not user_id :
708- track_event_if_configured (
709- "UserIdNotFound" , {"status_code" : 400 , "detail" : "no user" }
710- )
711- raise HTTPException (status_code = 400 , detail = "no user found" )
707+ track_event_if_configured (
708+ "UserIdNotFound" , {"status_code" : 400 , "detail" : "no user" }
709+ )
710+ raise HTTPException (status_code = 400 , detail = "no user found" )
712711 try :
713712 memory_store = await DatabaseFactory .get_database (user_id = user_id )
714713
0 commit comments