Skip to content

Commit c4a902c

Browse files
committed
fix model name match issue
Signed-off-by: Lv, Liang1 <[email protected]>
1 parent 1879f9b commit c4a902c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neural_chat/models/base_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def decorator():
8989

9090
def get_model_adapter(model_name_path: str) -> BaseModel:
9191
"""Get a model adapter for a model_name_path."""
92-
model_path_basename = os.path.basename(os.path.normpath(model_name_path))
92+
model_path_basename = os.path.basename(os.path.normpath(model_name_path)).lower
9393

9494
for adapter in model_adapters:
9595
if adapter.match(model_path_basename) and type(adapter) != BaseModel:

0 commit comments

Comments
 (0)