llama-stack/llama_stack/distribution/routers
Sébastien Han 803bf0e029
fix: solve ruff B008 warnings (#1444)
# What does this PR do?

The commit addresses the Ruff warning B008 by refactoring the code to
avoid calling SamplingParams() directly in function argument defaults.
Instead, it either uses Field(default_factory=SamplingParams) for
Pydantic models or sets the default to None and instantiates
SamplingParams inside the function body when the argument is None.

Signed-off-by: Sébastien Han <seb@redhat.com>
2025-03-06 16:48:35 -08:00
..
__init__.py feat: record token usage for inference API (#1300) 2025-03-05 12:41:45 -08:00
routers.py fix: solve ruff B008 warnings (#1444) 2025-03-06 16:48:35 -08:00
routing_tables.py fix: Agent uses the first configured vector_db_id when documents are provided (#1276) 2025-03-04 21:44:13 -08:00