-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
[Issue]: Unable to register custom model client for Assistant Agent #1667
Comments
@olgavrou has a PR that is fixing this exact issue: #1653. @kyokohunter you can take a look. Otherwise please check if this is fixed once that PR gets into the next release. |
@kyokohunter BTW, I see you forgot to register custom client for the group chat manager in your code -- you might want to use a standard model for group chat manager, e.g., GPT-4. |
@ekzhu I got a similar issue when using custom model client. Based on {the groupchat notebook}(https://github.com/microsoft/autogen/blob/main/notebook/agentchat_groupchat.ipynb), there was not a step to register custom client. My best guess is that the registration step was hidden somewhere or missed in the notebook. Could you please double check this? |
If you are using a custom model you need to register it. The group chat notebook was made as an example for group chat and not for custom models specifically, so if you are modifying it with custom models you need to add additional steps |
Thank you @olgavrou for replying to my comment! Could you please point me to the instruction of those additional steps you mentioned above? I have created a new issue (#1738) to describe my issue in detail. In short, I was trying to combine loading custom model with configuring agents with tools provided. However, I got stuck in how to register the custom model. |
@olgavrou could you follow up with @woodswift here? |
@woodswift the additional steps are
is that still not working? |
Reading the other thread this specific issue seems to be solved, so we can close this issue @woodswift ? |
Hi @olgavrou, please feel free to do so. I am no longer blocked. Thank you so much for your time and help! |
Describe the issue
I'd like to use the custom model feature as described in AutoGen with Custom Models: Empowering Users to Use Their Own Inference Mechanism to create a dummy model with no LLM connection, so I can develop my script (e.g. build out front-end UI) without needing to interact with a remote or local LLM - a random quote is to be returned for prompts.
In my simple and naive script to test the concept, at the point that I register the dummy model client with an AssistantAgent I get an error that my dummy model is not found in the CONFIG_LIST. However immediately prior to the error, AutoGen reports the detection of the custom model in the config and informs us that
register_model_client
needs to be called for it. This seems like a contradiction, but I don't know if the problem is my script or if there is a bug.Steps to reproduce
Step 1: Run following Python script
See error in Screenshots and logs below
Screenshots and logs
Additional Information
AutoGen Version: v0.2.11
Operating System: Windows 10
Python Version: 3.11
Docker Version: 4.26.1
The text was updated successfully, but these errors were encountered: