From 8edc233a8bc06afe88047d24562515fa251ecefb Mon Sep 17 00:00:00 2001 From: Kye Date: Sat, 23 Sep 2023 17:03:04 -0400 Subject: [PATCH] clean up Former-commit-id: 4d97824b67ab04287089ddfa553be0b63113f8a4 --- swarms/workers/worker.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/swarms/workers/worker.py b/swarms/workers/worker.py index b01ecd9f..4b5b5754 100644 --- a/swarms/workers/worker.py +++ b/swarms/workers/worker.py @@ -25,14 +25,16 @@ class Worker: @log_decorator @error_decorator @timing_decorator - def __init__(self, - model_name="gpt-4", - openai_api_key=None, - ai_name="Autobot Swarm Worker", - ai_role="Worker in a swarm", - external_tools = None, - human_in_the_loop=False, - temperature=0.5): + def __init__( + self, + model_name="gpt-4", + openai_api_key=None, + ai_name="Autobot Swarm Worker", + ai_role="Worker in a swarm", + external_tools = None, + human_in_the_loop=False, + temperature=0.5 + ): self.openai_api_key = openai_api_key self.temperature = temperature self.human_in_the_loop = human_in_the_loop