mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-31 06:56:59 +00:00
fix: fix linting errors
This commit is contained in:
parent
6e7654fb54
commit
e2d75a100a
2 changed files with 4 additions and 4 deletions
|
|
@ -109,8 +109,8 @@ async def add_new_member(
|
|||
where={"user_id": user_info.user_id}, # type: ignore
|
||||
data={"teams": {"push": [team_id]}},
|
||||
)
|
||||
|
||||
returned_user = LiteLLM_UserTable(**_returned_user.model_dump())
|
||||
if _returned_user is not None:
|
||||
returned_user = LiteLLM_UserTable(**_returned_user.model_dump())
|
||||
elif len(existing_user_row) > 1:
|
||||
raise HTTPException(
|
||||
status_code=400,
|
||||
|
|
|
|||
|
|
@ -864,7 +864,7 @@ def _pre_call_utils(
|
|||
data["messages"] = [{"role": "user", "content": "Hello world"}]
|
||||
if streaming is True:
|
||||
data["stream"] = True
|
||||
mapped_target = client.chat.completions.with_raw_response
|
||||
mapped_target = client.chat.completions.with_raw_response # type: ignore
|
||||
if sync_mode:
|
||||
original_function = litellm.completion
|
||||
else:
|
||||
|
|
@ -873,7 +873,7 @@ def _pre_call_utils(
|
|||
data["prompt"] = "Hello world"
|
||||
if streaming is True:
|
||||
data["stream"] = True
|
||||
mapped_target = client.completions.with_raw_response
|
||||
mapped_target = client.completions.with_raw_response # type: ignore
|
||||
if sync_mode:
|
||||
original_function = litellm.text_completion
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue