mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-02 08:44:44 +00:00
remove unused check_model
This commit is contained in:
parent
96accc1216
commit
db7b26a8c9
1 changed files with 0 additions and 6 deletions
|
@ -41,12 +41,6 @@ class SentenceTransformersInferenceImpl(
|
|||
async def shutdown(self) -> None:
|
||||
pass
|
||||
|
||||
def check_model(self, request) -> None:
|
||||
if request.model != self.config.model:
|
||||
raise RuntimeError(
|
||||
f"Model mismatch: {request.model} != {self.config.model}"
|
||||
)
|
||||
|
||||
async def register_model(self, model: Model) -> None:
|
||||
_ = self._load_sentence_transformer_model(model.provider_resource_id)
|
||||
return model
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue