1
0
mirror of https://github.com/containers/ramalama.git synced 2026-02-05 15:47:26 +01:00

adds model alias to api provider

Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>
This commit is contained in:
Ian Eaves
2026-01-24 16:29:44 -06:00
parent db8bb5d9df
commit 7bbcda466b

View File

@@ -35,6 +35,10 @@ class APITransport(TransportBase):
def model_type(self) -> str:
return self.type
@property
def model_alias(self):
return f"{self.model_organization}/{self.model_name}"
def _get_entry_model_path(self, use_container: bool, should_generate: bool, dry_run: bool) -> str:
raise NotImplementedError(
f"{self.model} is provided over a hosted API preventing direct pulling of the model file."