Skip to content

Commit

Permalink
run non streaming simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
XuhuiZhou committed Jan 7, 2025
1 parent 6b2db2a commit 56d2487
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sotopia/api/fastapi_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ async def send_error(
)


async def run_simulation(
async def nonstreaming_simulation(
episode_pk: str,
simulation_request: SimulationRequest,
simulation_status: NonStreamingSimulationStatus,
Expand Down Expand Up @@ -548,7 +548,7 @@ def simulate(simulation_request: SimulationRequest) -> Response:
simulation_status.save()
queue = rq.Queue("default", connection=get_redis_connection())
queue.enqueue(
run_simulation,
nonstreaming_simulation,
episode_pk=episode_pk,
simulation_request=simulation_request,
simulation_status=simulation_status,
Expand Down

0 comments on commit 56d2487

Please sign in to comment.