model selection playground fix

This commit is contained in:
Xi Yan 2024-12-17 18:12:59 -08:00
parent 3700022d6f
commit af8f1b3531
2 changed files with 10 additions and 4 deletions

View file

@ -11,7 +11,11 @@ from modules.api import llama_stack_api
with st.sidebar:
st.header("Configuration")
available_models = llama_stack_api.client.models.list()
available_models = [model.identifier for model in available_models]
available_models = [
model.identifier
for model in available_models
if model.identifier.startswith("meta-llama")
]
selected_model = st.selectbox(
"Choose a model",
available_models,