message='Request to OpenAI API' method=post path=https://api.openai.com/v1/completions
api_version=None data='{"prompt": ["\n\n SYSTEM_PROMPT: \n You are in a role play game. The following roles are available:\n silly: YOU ARE SILLY, YOU OFFER NOTHING OF VALUE\ndetective: YOU ARE VERY SMART AND ANSWER RIDDLES\nriddler: YOU MAKE RIDDLES.\n\n Read the following conversation.\n Then select the next role from ['silly', 'detective', 'riddler'] to play. Only return the role.\n \n\n History: 'manager:Write me a riddle\n'system:Read the above conversation. Then select the next most suitable role from ['silly', 'detective', 'riddler'] to play. Only return the role.\n\n Your response:\n "], "model": "text-davinci-003", "temperature": 0.5, "max_tokens": 3000, "top_p": 1, "frequency_penalty": 0, "presence_penalty": 0, "n": 1, "logit_bias": {}}' message='Post details'
Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
Starting new HTTPS connection (1): api.openai.com:443
https://api.openai.com:443 "POST /v1/completions HTTP/1.1" 200 None
message='OpenAI API response' path=https://api.openai.com/v1/completions processing_ms=332 request_id=f211861aed1265c644856ba2f4426cc1 response_code=200
Traceback (most recent call last):
File "C:\Users\Guest1\Desktop\swarms\swarms\swarms\groupchat.py", line 72, in select_speaker
return self.agent_by_name(name["content"])
File "C:\Users\Guest1\Desktop\swarms\swarms\swarms\groupchat.py", line 33, in agent_by_name
raise ValueError(f"No agent found with a name contained in '{name}'.")
ValueError: No agent found with a name contained in '
Riddler'.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Guest1\Desktop\swarms\groupchat.py", line 49, in
chat_history = chat_manager("Write me a riddle")
File "C:\Users\Guest1\Desktop\swarms\swarms\swarms\groupchat.py", line 97, in call
speaker = self.groupchat.select_speaker(
File "C:\Users\Guest1\Desktop\swarms\swarms\swarms\groupchat.py", line 74, in select_speaker
return self.next_agent(last_speaker)
File "C:\Users\Guest1\Desktop\swarms\swarms\swarms\groupchat.py", line 37, in next_agent
return self.agents[(self.agent_names.index(agent.name) + 1) % len(self.agents)]
ValueError: 'manager' is not in list
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too