diff --git a/src/agentscope/models/openai_model.py b/src/agentscope/models/openai_model.py index 9c47e886c..0d8455a17 100644 --- a/src/agentscope/models/openai_model.py +++ b/src/agentscope/models/openai_model.py @@ -57,6 +57,7 @@ def __init__( """ if model_name is None: model_name = config_name + logger.warning("model_name is not set, use config_name instead.") super().__init__( config_name=config_name, model_name=model_name, diff --git a/src/agentscope/models/tongyi_model.py b/src/agentscope/models/tongyi_model.py index 57eb92294..74712fc13 100644 --- a/src/agentscope/models/tongyi_model.py +++ b/src/agentscope/models/tongyi_model.py @@ -47,6 +47,7 @@ def __init__( """ if model_name is None: model_name = config_name + logger.warning("model_name is not set, use config_name instead.") super().__init__( config_name=config_name, model_name=model_name,