Skip to content

Commit eb8b8a0

Browse files
Merge pull request #1357 from roboflow/fix/better-unsupported-model-message
Make model unsupported message more descriptive
2 parents 49d61cf + c399dde commit eb8b8a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

inference/core/registries/roboflow.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ def get_model(self, model_id: ModelID, api_key: str) -> Model:
8585
logger.debug(f"Model type: {model_type}")
8686

8787
if model_type not in self.registry_dict:
88-
raise ModelNotRecognisedError(f"Model type not supported: {model_type}")
88+
raise ModelNotRecognisedError(
89+
f"Model type not supported, you may want to try a different inference server configuration or endpoint: {model_type}"
90+
)
8991
return self.registry_dict[model_type]
9092

9193

0 commit comments

Comments
 (0)