mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
(fix) linting
This commit is contained in:
parent
24386c05aa
commit
73eb5a7718
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ celery_app.conf.update(
|
||||||
def process_job(*args, **kwargs):
|
def process_job(*args, **kwargs):
|
||||||
try:
|
try:
|
||||||
llm_router: litellm.Router = litellm.Router(model_list=kwargs.pop("llm_model_list"))
|
llm_router: litellm.Router = litellm.Router(model_list=kwargs.pop("llm_model_list"))
|
||||||
response = llm_router.completion(*args, **kwargs)
|
response = llm_router.completion(*args, **kwargs) # type: ignore
|
||||||
if isinstance(response, litellm.ModelResponse):
|
if isinstance(response, litellm.ModelResponse):
|
||||||
response = response.model_dump_json()
|
response = response.model_dump_json()
|
||||||
return json.loads(response)
|
return json.loads(response)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue