We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bf1a71 commit 8854269Copy full SHA for 8854269
endpoints/core/utils/model.py
@@ -45,11 +45,14 @@ async def get_current_model_list(model_type: str = "model"):
45
# Make sure the model container exists
46
match model_type:
47
case "model":
48
- model_path = model.container.model_dir
+ if model.container:
49
+ model_path = model.container.model_dir
50
case "draft":
- model_path = model.container.draft_model_dir
51
52
+ model_path = model.container.draft_model_dir
53
case "embedding":
- model_path = model.embeddings_container.model_dir
54
+ if model.embeddings_container:
55
+ model_path = model.embeddings_container.model_dir
56
57
if model_path:
58
current_models.append(ModelCard(id=model_path.name))
0 commit comments