mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-24 02:25:29 +00:00
(fix) linting
This commit is contained in:
@@ -46,7 +46,7 @@ celery_app.conf.update(
|
||||
def process_job(*args, **kwargs):
|
||||
try:
|
||||
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):
|
||||
response = response.model_dump_json()
|
||||
return json.loads(response)
|
||||
|
||||
Reference in New Issue
Block a user