mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-28 06:23:07 +00:00
fix(rerank): reject streaming decision rerank requests
This commit is contained in:
parent
94730e4277
commit
894ecb6f84
1 changed files with 6 additions and 0 deletions
|
|
@ -227,6 +227,12 @@ class LiteLLMDecisionsRerankConfig:
|
|||
provider: str,
|
||||
strategy: Literal["pointwise", "multiple_choice"],
|
||||
) -> DecisionRerankRequest:
|
||||
if params.get("stream") is True:
|
||||
raise litellm.UnsupportedParamsError(
|
||||
message="Decision reranking does not support stream=True",
|
||||
model=model,
|
||||
llm_provider=provider,
|
||||
)
|
||||
unsupported: Final = tuple(key for key in _UNSUPPORTED if params.get(key) is not None)
|
||||
if unsupported:
|
||||
raise litellm.UnsupportedParamsError(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue