forked from phoenix-oss/llama-stack-mirror
model_type=llm for filering available models for playground
This commit is contained in:
parent
2f9fdb0ea7
commit
75e72cf2fc
2 changed files with 2 additions and 6 deletions
|
@ -12,9 +12,7 @@ with st.sidebar:
|
||||||
st.header("Configuration")
|
st.header("Configuration")
|
||||||
available_models = llama_stack_api.client.models.list()
|
available_models = llama_stack_api.client.models.list()
|
||||||
available_models = [
|
available_models = [
|
||||||
model.identifier
|
model.identifier for model in available_models if model.model_type == "llm"
|
||||||
for model in available_models
|
|
||||||
if model.identifier.startswith("meta-llama")
|
|
||||||
]
|
]
|
||||||
selected_model = st.selectbox(
|
selected_model = st.selectbox(
|
||||||
"Choose a model",
|
"Choose a model",
|
||||||
|
|
|
@ -75,9 +75,7 @@ def rag_chat_page():
|
||||||
|
|
||||||
available_models = llama_stack_api.client.models.list()
|
available_models = llama_stack_api.client.models.list()
|
||||||
available_models = [
|
available_models = [
|
||||||
model.identifier
|
model.identifier for model in available_models if model.model_type == "llm"
|
||||||
for model in available_models
|
|
||||||
if model.identifier.startswith("meta-llama")
|
|
||||||
]
|
]
|
||||||
selected_model = st.selectbox(
|
selected_model = st.selectbox(
|
||||||
"Choose a model",
|
"Choose a model",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue