llama-stack-mirror/llama_stack/providers/utils
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
..
bedrock Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
common build: format codebase imports using ruff linter (#1028) 2025-02-13 10:06:21 -08:00
datasetio build: format codebase imports using ruff linter (#1028) 2025-02-13 10:06:21 -08:00
inference fix: solve ruff B008 warnings (#1444) 2025-03-06 16:48:35 -08:00
kvstore refactor(test): unify vector_io tests and make them configurable (#1398) 2025-03-04 13:37:45 -08:00
memory chore: remove dependency on llama_models completely (#1344) 2025-03-01 12:48:08 -08:00
scoring test: revamp eval related integration tests (#1433) 2025-03-06 10:51:35 -08:00
telemetry fix: Agent telemetry inputs/outputs should be structured (#1302) 2025-02-27 23:06:37 -08:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00