fix(cloudflare): accept litellm_params in rerank validate_environment

This commit is contained in:
prdai 2026-09-13 15:05:26 +05:30
parent 81f34605d8
commit 880e4a43ac

View file

@ -118,6 +118,7 @@ class CloudflareRerankConfig(BaseRerankConfig):
model: str,
api_key: str | None = None,
optional_params: Mapping[str, object] | None = None,
litellm_params: Mapping[str, object] | None = None,
) -> Mapping[str, object]:
api_key = api_key or get_secret_str("CLOUDFLARE_API_KEY")
if api_key is None: