@@ -654,9 +654,9 @@ class GenerateRequestBase(LiteLLMPydanticObjectBase):
654
654
allowed_cache_controls : Optional [list ] = []
655
655
config : Optional [dict ] = {}
656
656
permissions : Optional [dict ] = {}
657
- model_max_budget : Optional [
658
- dict
659
- ] = {} # {"gpt-4": 5.0, "gpt-3.5-turbo": 5.0}, defaults to {}
657
+ model_max_budget : Optional [dict ] = (
658
+ {}
659
+ ) # {"gpt-4": 5.0, "gpt-3.5-turbo": 5.0}, defaults to {}
660
660
661
661
model_config = ConfigDict (protected_namespaces = ())
662
662
model_rpm_limit : Optional [dict ] = None
@@ -918,12 +918,12 @@ class NewCustomerRequest(BudgetNewRequest):
918
918
alias : Optional [str ] = None # human-friendly alias
919
919
blocked : bool = False # allow/disallow requests for this end-user
920
920
budget_id : Optional [str ] = None # give either a budget_id or max_budget
921
- allowed_model_region : Optional [
922
- AllowedModelRegion
923
- ] = None # require all user requests to use models in this specific region
924
- default_model : Optional [
925
- str
926
- ] = None # if no equivalent model in allowed region - default all requests to this model
921
+ allowed_model_region : Optional [AllowedModelRegion ] = (
922
+ None # require all user requests to use models in this specific region
923
+ )
924
+ default_model : Optional [str ] = (
925
+ None # if no equivalent model in allowed region - default all requests to this model
926
+ )
927
927
928
928
@model_validator (mode = "before" )
929
929
@classmethod
@@ -945,12 +945,12 @@ class UpdateCustomerRequest(LiteLLMPydanticObjectBase):
945
945
blocked : bool = False # allow/disallow requests for this end-user
946
946
max_budget : Optional [float ] = None
947
947
budget_id : Optional [str ] = None # give either a budget_id or max_budget
948
- allowed_model_region : Optional [
949
- AllowedModelRegion
950
- ] = None # require all user requests to use models in this specific region
951
- default_model : Optional [
952
- str
953
- ] = None # if no equivalent model in allowed region - default all requests to this model
948
+ allowed_model_region : Optional [AllowedModelRegion ] = (
949
+ None # require all user requests to use models in this specific region
950
+ )
951
+ default_model : Optional [str ] = (
952
+ None # if no equivalent model in allowed region - default all requests to this model
953
+ )
954
954
955
955
956
956
class DeleteCustomerRequest (LiteLLMPydanticObjectBase ):
@@ -1086,9 +1086,9 @@ class BlockKeyRequest(LiteLLMPydanticObjectBase):
1086
1086
1087
1087
class AddTeamCallback (LiteLLMPydanticObjectBase ):
1088
1088
callback_name : str
1089
- callback_type : Optional [
1090
- Literal [ "success" , "failure" , " success_and_failure"]
1091
- ] = "success_and_failure"
1089
+ callback_type : Optional [Literal [ "success" , "failure" , "success_and_failure" ]] = (
1090
+ " success_and_failure"
1091
+ )
1092
1092
callback_vars : Dict [str , str ]
1093
1093
1094
1094
@model_validator (mode = "before" )
@@ -1346,9 +1346,9 @@ class ConfigList(LiteLLMPydanticObjectBase):
1346
1346
stored_in_db : Optional [bool ]
1347
1347
field_default_value : Any
1348
1348
premium_field : bool = False
1349
- nested_fields : Optional [
1350
- List [ FieldDetail ]
1351
- ] = None # For nested dictionary or Pydantic fields
1349
+ nested_fields : Optional [List [ FieldDetail ]] = (
1350
+ None # For nested dictionary or Pydantic fields
1351
+ )
1352
1352
1353
1353
1354
1354
class ConfigGeneralSettings (LiteLLMPydanticObjectBase ):
@@ -1616,9 +1616,9 @@ class LiteLLM_OrganizationMembershipTable(LiteLLMPydanticObjectBase):
1616
1616
budget_id : Optional [str ] = None
1617
1617
created_at : datetime
1618
1618
updated_at : datetime
1619
- user : Optional [
1620
- Any
1621
- ] = None # You might want to replace 'Any' with a more specific type if available
1619
+ user : Optional [Any ] = (
1620
+ None # You might want to replace ' Any' with a more specific type if available
1621
+ )
1622
1622
litellm_budget_table : Optional [LiteLLM_BudgetTable ] = None
1623
1623
1624
1624
model_config = ConfigDict (protected_namespaces = ())
@@ -2015,6 +2015,8 @@ class SpendLogsPayload(TypedDict):
2015
2015
custom_llm_provider : Optional [str ]
2016
2016
messages : Optional [Union [str , list , dict ]]
2017
2017
response : Optional [Union [str , list , dict ]]
2018
+ proxy_server_request : Optional [str ]
2019
+ session_id : Optional [str ]
2018
2020
2019
2021
2020
2022
class SpanAttributes (str , enum .Enum ):
@@ -2366,9 +2368,9 @@ class TeamModelDeleteRequest(BaseModel):
2366
2368
# Organization Member Requests
2367
2369
class OrganizationMemberAddRequest (OrgMemberAddRequest ):
2368
2370
organization_id : str
2369
- max_budget_in_organization : Optional [
2370
- float
2371
- ] = None # Users max budget within the organization
2371
+ max_budget_in_organization : Optional [float ] = (
2372
+ None # Users max budget within the organization
2373
+ )
2372
2374
2373
2375
2374
2376
class OrganizationMemberDeleteRequest (MemberDeleteRequest ):
@@ -2557,9 +2559,9 @@ class ProviderBudgetResponse(LiteLLMPydanticObjectBase):
2557
2559
Maps provider names to their budget configs.
2558
2560
"""
2559
2561
2560
- providers : Dict [
2561
- str , ProviderBudgetResponseObject
2562
- ] = {} # Dictionary mapping provider names to their budget configurations
2562
+ providers : Dict [str , ProviderBudgetResponseObject ] = (
2563
+ {}
2564
+ ) # Dictionary mapping provider names to their budget configurations
2563
2565
2564
2566
2565
2567
class ProxyStateVariables (TypedDict ):
@@ -2687,9 +2689,9 @@ class LiteLLM_JWTAuth(LiteLLMPydanticObjectBase):
2687
2689
enforce_rbac : bool = False
2688
2690
roles_jwt_field : Optional [str ] = None # v2 on role mappings
2689
2691
role_mappings : Optional [List [RoleMapping ]] = None
2690
- object_id_jwt_field : Optional [
2691
- str
2692
- ] = None # can be either user / team, inferred from the role mapping
2692
+ object_id_jwt_field : Optional [str ] = (
2693
+ None # can be either user / team, inferred from the role mapping
2694
+ )
2693
2695
scope_mappings : Optional [List [ScopeMapping ]] = None
2694
2696
enforce_scope_based_access : bool = False
2695
2697
enforce_team_based_model_access : bool = False
0 commit comments