mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-11 08:38:24 +00:00
style(nvidia_nim): keep justified cast within lint line limit
This commit is contained in:
parent
a093a6b846
commit
884dad6261
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ class NvidiaNimRerankConfig(BaseRerankConfig):
|
|||
if "documents" not in optional_rerank_params:
|
||||
raise ValueError("documents is required for Nvidia NIM rerank")
|
||||
|
||||
top_n: Final[object] = cast(object, optional_rerank_params.get("top_n")) # cast-ok: untyped provider parameter is validated below
|
||||
top_n: Final[object] = cast(object, optional_rerank_params.get("top_n")) # cast-ok: value validated below
|
||||
if top_n is not None:
|
||||
if isinstance(top_n, bool) or not isinstance(top_n, int) or top_n < 1:
|
||||
raise ValueError(f"top_n must be a positive integer, got: {top_n!r}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue