Gamucopia-Creatives commited on
Commit
46d41dd
·
1 Parent(s): 85218c9

fix: set default value for ResetRequest in reset_env endpoint to prevent validation errors

Browse files
Files changed (1) hide show
  1. server/app.py +1 -1
server/app.py CHANGED
@@ -757,7 +757,7 @@ def read_root():
757
 
758
 
759
  @app.post("/reset", tags=["🤖 Automated Benchmarking"], summary="1. Initialize Environment (Task Selection)")
760
- async def reset_env(req: ResetRequest = Body(...)):
761
  """Resets the environment with a given task and seed. This must be the first step in any benchmarking track."""
762
  try:
763
  # Access the enum value (the human-readable name)
 
757
 
758
 
759
  @app.post("/reset", tags=["🤖 Automated Benchmarking"], summary="1. Initialize Environment (Task Selection)")
760
+ async def reset_env(req: ResetRequest = Body(default=ResetRequest())):
761
  """Resets the environment with a given task and seed. This must be the first step in any benchmarking track."""
762
  try:
763
  # Access the enum value (the human-readable name)