daveshap / OpenAI_Agent_Swarm

HAAS = Hierarchical Autonomous Agent Swarm - "Resistance is futile!"
MIT License
2.95k stars 381 forks source link

unit_manager.py will not run #183

Open Quenos opened 8 months ago

Quenos commented 8 months ago

trying to get the unit manager to run, but get an error that chat_manager.py can't find the API_KEY. Made an .env file and tried different locations for it, to no avail. Also set an export in .bash_profile not working either.

What am I doing wrong?

OWigginsHay commented 8 months ago

@Quenos hi could you provide what branch you a running and the exact error message?

Chat manager never creates a client, it is only passed one, so it should not throw an error due to API_KEY. Would you mind letting me know what OS you are using too?

OWigginsHay commented 8 months ago

You may have to run unit_manager.py as a module like <python_path> -m agents.tool_maker.unit_manager

OWigginsHay commented 8 months ago

@Quenos I have merged a PR that should have fixed this issue following the updated README