From ae4dade65ac16dfc6b447d745f5648e48086bc35 Mon Sep 17 00:00:00 2001 From: qbc Date: Mon, 4 Mar 2024 19:57:55 +0800 Subject: [PATCH] add warning if model_name is not set --- src/agentscope/models/openai_model.py | 1 + src/agentscope/models/tongyi_model.py | 1 + 2 files changed, 2 insertions(+) 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,