Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/app/endpoints/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from llama_stack_client.lib.agents.agent import Agent # type: ignore
from llama_stack_client import LlamaStackClient # type: ignore
from llama_stack_client.types import UserMessage # type: ignore
from llama_stack_client.types.model_list_response import ModelListResponse

from fastapi import APIRouter, Request, HTTPException, status

Expand Down Expand Up @@ -43,7 +44,7 @@ def query_endpoint_handler(

def select_model_id(client: LlamaStackClient, query_request: QueryRequest) -> str:
"""Select the model ID based on the request or available models."""
models = client.models.list()
models: ModelListResponse = client.models.list()
model_id = query_request.model
provider_id = query_request.provider

Expand Down