Files
Matteo Frattaroli ec4f3c0f19 Fix #2643 - groupchat model registration (#2696)
* remove unused import statement

* fix #2643: register custom model clients within GroupChat

* add docs for fix #2643

* Update website/docs/topics/groupchat/using_custom_models.md

Co-authored-by: Chi Wang <wang.chi@microsoft.com>

* Update website/docs/topics/groupchat/using_custom_models.md

Co-authored-by: Chi Wang <wang.chi@microsoft.com>

* fix: removed unnecessary llm_config from checking agent

* fix: handle missing config or "config_list" key in config

* fix: code formatting

* Isolate method for internal agents creation

* Add unit test to verify that internal agents' client actually registers ModelClient class

* fix: function arguments formatting

* chore: prepend "select_speaker_auto_" to llm_config and model_client_cls attributes in GroupChat

* feat: use selector's llm_config for speaker selection agent if none is passed to GroupChat

* Update test/agentchat/test_groupchat.py

* Update groupchat.py - moved class parameters around, added to docstring

* Update groupchat.py - added selector to async select speaker functions

* Update test_groupchat.py - Corrected test cases for custom model client class

* Update test_groupchat.py pre-commit tidy

---------

Co-authored-by: Matteo Frattaroli <m.frattroli97@gmail.com>
Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Co-authored-by: Mark Sze <66362098+marklysze@users.noreply.github.com>
2024-10-11 09:05:23 -07:00
..