Skip to content

Commit

Permalink
add warning if model_name is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
qbc2016 committed Mar 4, 2024
1 parent 965c1cd commit ae4dade
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/agentscope/models/openai_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/agentscope/models/tongyi_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ae4dade

Please sign in to comment.