model_type=llm for filering available models for playground

This commit is contained in:
Xi Yan 2024-12-17 19:42:38 -08:00
parent 2f9fdb0ea7
commit 75e72cf2fc
2 changed files with 2 additions and 6 deletions

View file

@ -12,9 +12,7 @@ with st.sidebar:
st.header("Configuration")
available_models = llama_stack_api.client.models.list()
available_models = [
model.identifier
for model in available_models
if model.identifier.startswith("meta-llama")
model.identifier for model in available_models if model.model_type == "llm"
]
selected_model = st.selectbox(
"Choose a model",