mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-17 19:19:47 +00:00
Undo None check and temporarily move if model check before builder
This commit is contained in:
parent
16ffe19a20
commit
490c5fb730
4 changed files with 7 additions and 7 deletions
|
|
@ -179,7 +179,7 @@ def chat_completion_request_to_messages(
|
|||
return request.messages
|
||||
|
||||
allowed_models = supported_inference_models()
|
||||
descriptors = [m.descriptor() for m in allowed_models if m is not None]
|
||||
descriptors = [m.descriptor() for m in allowed_models]
|
||||
if model.descriptor() not in descriptors:
|
||||
cprint(f"Unsupported inference model? {model.descriptor()}", color="red")
|
||||
return request.messages
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue