Former-commit-id: 4d97824b67
group-chat
Kye 1 year ago
parent 13711fb7b0
commit 8edc233a8b

@ -25,14 +25,16 @@ class Worker:
@log_decorator @log_decorator
@error_decorator @error_decorator
@timing_decorator @timing_decorator
def __init__(self, def __init__(
model_name="gpt-4", self,
openai_api_key=None, model_name="gpt-4",
ai_name="Autobot Swarm Worker", openai_api_key=None,
ai_role="Worker in a swarm", ai_name="Autobot Swarm Worker",
external_tools = None, ai_role="Worker in a swarm",
human_in_the_loop=False, external_tools = None,
temperature=0.5): human_in_the_loop=False,
temperature=0.5
):
self.openai_api_key = openai_api_key self.openai_api_key = openai_api_key
self.temperature = temperature self.temperature = temperature
self.human_in_the_loop = human_in_the_loop self.human_in_the_loop = human_in_the_loop

Loading…
Cancel
Save