@@ -855,37 +855,6 @@ async def delete_team_config(team_id: str, request: Request):
855855 raise HTTPException (status_code = 500 , detail = "Internal server error occurred" )
856856
857857
858- @app_v3 .get ("/model_deployments" )
859- async def get_model_deployments (request : Request ):
860- """
861- Get information about available model deployments for debugging/validation.
862-
863- ---
864- tags:
865- - Model Validation
866- responses:
867- 200:
868- description: List of available model deployments
869- 401:
870- description: Missing or invalid user information
871- """
872- # Validate user authentication
873- authenticated_user = get_authenticated_user_details (request_headers = request .headers )
874- user_id = authenticated_user ["user_principal_id" ]
875- if not user_id :
876- raise HTTPException (
877- status_code = 401 , detail = "Missing or invalid user information"
878- )
879-
880- try :
881- team_service = TeamService ()
882- deployments = [] # await team_service.extract_models_from_agent()
883- summary = await team_service .get_deployment_status_summary ()
884- return {"deployments" : deployments , "summary" : summary }
885- except Exception as e :
886- logging .error (f"Error retrieving model deployments: { str (e )} " )
887- raise HTTPException (status_code = 500 , detail = "Internal server error occurred" )
888-
889858
890859@app_v3 .post ("/select_team" )
891860async def select_team (selection : TeamSelectionRequest , request : Request ):
@@ -976,38 +945,6 @@ async def select_team(selection: TeamSelectionRequest, request: Request):
976945 )
977946 raise HTTPException (status_code = 500 , detail = "Internal server error occurred" )
978947
979-
980- @app_v3 .get ("/search_indexes" )
981- async def get_search_indexes (request : Request ):
982- """
983- Get information about available search indexes for debugging/validation.
984-
985- ---
986- tags:
987- - Search Validation
988- responses:
989- 200:
990- description: List of available search indexes
991- 401:
992- description: Missing or invalid user information
993- """
994- # Validate user authentication
995- authenticated_user = get_authenticated_user_details (request_headers = request .headers )
996- user_id = authenticated_user ["user_principal_id" ]
997- if not user_id :
998- raise HTTPException (
999- status_code = 401 , detail = "Missing or invalid user information"
1000- )
1001-
1002- try :
1003- team_service = TeamService ()
1004- summary = await team_service .get_search_index_summary ()
1005- return {"search_summary" : summary }
1006- except Exception as e :
1007- logging .error (f"Error retrieving search indexes: { str (e )} " )
1008- raise HTTPException (status_code = 500 , detail = "Internal server error occurred" )
1009-
1010-
1011948# Get plans is called in the initial side rendering of the frontend
1012949@app_v3 .get ("/plans" )
1013950async def get_plans (request : Request ):
0 commit comments