Skip to content

Commit

Permalink
Fix bug in get_model_id function
Browse files Browse the repository at this point in the history
  • Loading branch information
libowen2121 committed Mar 27, 2024
1 parent caa5e65 commit 590a050
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inference/run_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,10 @@ def get_model_id(model_name: str) -> str:
"""
if "deepseek" in model_name:
return "deepseek"
if "codellama" in model_name:
elif "codellama" in model_name:
return "codelllma"
else:
raise ValueError(f"Unknown model name: {model_name}")


def claude_tokenize(string: str, api) -> int:
Expand Down

0 comments on commit 590a050

Please sign in to comment.