mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
feat: fix linting errors
This commit is contained in:
parent
e1476bbc51
commit
57869c0739
2 changed files with 10 additions and 3 deletions
|
@ -15,7 +15,7 @@ import asyncio
|
||||||
import traceback
|
import traceback
|
||||||
import uuid
|
import uuid
|
||||||
from datetime import datetime, timedelta, timezone
|
from datetime import datetime, timedelta, timezone
|
||||||
from typing import Any, List, Optional, Union
|
from typing import Any, List, Optional, Union, cast
|
||||||
|
|
||||||
import fastapi
|
import fastapi
|
||||||
from fastapi import APIRouter, Depends, Header, HTTPException, Request, status
|
from fastapi import APIRouter, Depends, Header, HTTPException, Request, status
|
||||||
|
@ -743,7 +743,7 @@ async def user_update(
|
||||||
**existing_user_row.model_dump(exclude_none=True)
|
**existing_user_row.model_dump(exclude_none=True)
|
||||||
)
|
)
|
||||||
|
|
||||||
existing_metadata = existing_user_row.metadata if existing_user_row else {}
|
existing_metadata = cast(Dict, getattr(existing_user_row, "metadata", {}) or {})
|
||||||
|
|
||||||
non_default_values = prepare_metadata_fields(
|
non_default_values = prepare_metadata_fields(
|
||||||
data=data,
|
data=data,
|
||||||
|
|
|
@ -350,7 +350,14 @@ async def delete_model(
|
||||||
model_info: ModelInfoDelete,
|
model_info: ModelInfoDelete,
|
||||||
user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),
|
user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),
|
||||||
):
|
):
|
||||||
global llm_router, llm_model_list, general_settings, user_config_file_path, proxy_config
|
from litellm.proxy.proxy_server import (
|
||||||
|
general_settings,
|
||||||
|
llm_model_list,
|
||||||
|
llm_router,
|
||||||
|
proxy_config,
|
||||||
|
user_config_file_path,
|
||||||
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
"""
|
"""
|
||||||
[BETA] - This is a beta endpoint, format might change based on user feedback. - https://github.com/BerriAI/litellm/issues/964
|
[BETA] - This is a beta endpoint, format might change based on user feedback. - https://github.com/BerriAI/litellm/issues/964
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue