mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix(huggingface_restapi.pyu): fix linting errors
This commit is contained in:
parent
c23d42305d
commit
1218121e47
1 changed files with 1 additions and 1 deletions
|
@ -406,7 +406,7 @@ class Huggingface(BaseLLM):
|
||||||
try:
|
try:
|
||||||
completion_response = response.json()
|
completion_response = response.json()
|
||||||
if isinstance(completion_response, dict):
|
if isinstance(completion_response, dict):
|
||||||
completion_response: List[Dict[str, Any]] = [completion_response]
|
completion_response = [completion_response]
|
||||||
except:
|
except:
|
||||||
import traceback
|
import traceback
|
||||||
raise HuggingfaceError(
|
raise HuggingfaceError(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue