Rushikesh

Results 5 comments of Rushikesh

@bird-cat, I tried the solution mentioned in the user guide https://microsoft.github.io/autogen/0.2/docs/topics/groupchat/using_custom_models, but i am getting a error as TypeError: GroupChat.__init__() got an unexpected keyword argument 'model_client_cls'.

@ekzhu still getting the same error, setting speaker_selection_method = "random" is working but https://microsoft.github.io/autogen/0.2/docs/topics/groupchat/using_custom_models is not working my code- ```python import os import requests from types import SimpleNamespace from autogen...

@ekzhu I modified it to ```python groupchat = GroupChat(agents=[user_proxy, planner, engineer, scientist, executor, critic], messages=[],select_speaker_auto_verbose=True, select_speaker_auto_llm_config=config_list_custom, select_speaker_auto_model_client_cls=CustomModelClientForAPI, max_round=20) manager = GroupChatManager(groupchat=groupchat, llm_config={"config_list": config_list_custom}) manager.register_model_client(CustomModelClientForAPI) ``` but now I am getting...

@ekzhu ```python config_list_custom = [ { "model": gpt_config["model"], "model_client_cls": "CustomModelClientForAPI", "api_key": gpt_config["api_key"], "base_url": gpt_config["base_url"], "params": gpt_config["params"], } ] ``` this was the full code for your reference https://github.com/microsoft/autogen/issues/2956#issuecomment-2509585083