Skip to content

Commit

Permalink
[fee to create agent}
Browse files Browse the repository at this point in the history
  • Loading branch information
kyegomez committed Feb 4, 2025
1 parent dcdec60 commit 0f7e990
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,15 +697,13 @@ async def execute_agent_endpoint(
agent_id: str,
exec_payload: ExecutionPayload,
background_tasks: BackgroundTasks,
x_api_key: str = Header(...),
) -> Dict[str, Any]:
"""
Execute an agent manually.
The execution is performed asynchronously. If the agent was created with autoscaling enabled,
multiple concurrent executions are allowed. Otherwise, the executions still run in the background.
"""
deduct_credits(x_api_key, 0.04, "swarms_cloud_execute_agent")
logger.info(f"Executing agent {agent_id}")
try:
agent = agents_db.get(agent_id)
Expand Down

0 comments on commit 0f7e990

Please sign in to comment.