Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] groupchat #97

Closed
elder-plinius opened this issue Nov 6, 2023 · 1 comment
Closed

[BUG] groupchat #97

elder-plinius opened this issue Nov 6, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@elder-plinius
Copy link
Contributor

elder-plinius commented Nov 6, 2023

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

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@elder-plinius elder-plinius added the bug Something isn't working label Nov 6, 2023
@kyegomez
Copy link
Owner

kyegomez commented Nov 8, 2023

@elder-plinius this has been solved

@kyegomez kyegomez closed this as completed Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants