You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should not overwrite existing custom model clients
Steps to reproduce
assistant=ConversableAgent(
name="Assistant",
system_message="You are a helpful AI assistant. ""You can help with simple calculations.""Return 'TERMINATE' when the task is done.",
llm_config={"config_list": [custom_config]},
)
assistant.register_model_client(model_client_cls=CustomModelClient) # Registers custom model clientassistant.register_for_llm(name="calculator", description="A simple calculator")(calculator) # Overwrites custom model client
Create an agent
Register a custom model client
Register a function for an LLM
The client is overwritten so we are left with a PlaceholderClient instead of the registered custom model client
Model Used
Custom Model (with GPT-4)
Expected Behavior
The function should be registered without overwriting the custom model client
Screenshots and logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
When trying to register a function for an LLM, it will overwrite the custom model client registered, leading to a PlaceholderClient.
autogen/autogen/agentchat/conversable_agent.py
Line 2496 in d461100
This should not overwrite existing custom model clients
Steps to reproduce
Model Used
Custom Model (with GPT-4)
Expected Behavior
The function should be registered without overwriting the custom model client
Screenshots and logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: