OpenBMB / ChatDev

Create Customized Software using Natural Language Idea (through LLM-powered Multi-Agent Collaboration)
https://arxiv.org/abs/2307.07924
Apache License 2.0
25.67k stars 3.23k forks source link

Update generators.py #459

Open smit23patel opened 1 month ago

smit23patel commented 1 month ago
  1. Use of get Method: In the from_dict method, I replaced direct indexing with the get method to provide a default value if the role type is not found.

  2. Consistent Role Type Usage: Updated the return statement in from_dict to use the correct role_type instead of defaulting to RoleType.DEFAULT.