fix: fix linting errors

This commit is contained in:
Krrish Dholakia 2024-05-09 17:55:27 -07:00
parent 7c0ab40fd5
commit ef72f25ab6
3 changed files with 16 additions and 15 deletions

View file

@ -399,10 +399,11 @@ class Huggingface(BaseLLM):
data = {
"inputs": prompt,
"parameters": optional_params,
"stream": (
"stream": ( # type: ignore
True
if "stream" in optional_params
and optional_params["stream"] == True
and isinstance(optional_params["stream"], bool)
and optional_params["stream"] == True # type: ignore
else False
),
}
@ -433,7 +434,7 @@ class Huggingface(BaseLLM):
data = {
"inputs": prompt,
"parameters": inference_params,
"stream": (
"stream": ( # type: ignore
True
if "stream" in optional_params
and optional_params["stream"] == True