mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-18 07:48:42 +00:00
change to llm type
This commit is contained in:
parent
62890b3171
commit
2b6aa71a21
3 changed files with 5 additions and 5 deletions
|
|
@ -168,7 +168,7 @@ class InferenceRouter(Inference):
|
|||
model = await self.routing_table.get_model(model_id)
|
||||
if model is None:
|
||||
raise ValueError(f"Model '{model_id}' not found")
|
||||
if model.model_type == ModelType.llm_model:
|
||||
if model.model_type == ModelType.llm:
|
||||
raise ValueError(
|
||||
f"Model '{model_id}' is an LLM model and does not support embeddings"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue