refactor(inventory): make force_fresh_nous_tier keyword-only + pin contract

Follow-up to the salvaged perf fix. The new force_fresh_nous_tier param was
inserted into list_authenticated_providers between custom_providers and
max_models. Make it keyword-only (*) so a positional caller passing max_models
as the 5th arg can never silently mis-bind it to the tier-refresh flag, and
add a signature-contract test that fails if the keyword-only separator is
later dropped. All in-repo callers already use keyword args; verified no
caller breaks.
This commit is contained in:
kshitijk4poor 2026-06-07 13:02:30 +05:30 committed by kshitij
parent eb70ab894b
commit 44c0c2d4ac
2 changed files with 19 additions and 0 deletions

View file

@ -1178,6 +1178,7 @@ def list_authenticated_providers(
current_base_url: str = "",
user_providers: dict = None,
custom_providers: list | None = None,
*,
force_fresh_nous_tier: bool = False,
max_models: int = 8,
current_model: str = "",