forked from phoenix/litellm-mirror
types - AddTeamCallback
This commit is contained in:
parent
15c109f023
commit
ff768e7571
1 changed files with 20 additions and 0 deletions
|
@ -884,6 +884,26 @@ class BlockTeamRequest(LiteLLMBase):
|
|||
team_id: str # required
|
||||
|
||||
|
||||
class AddTeamCallback(LiteLLMBase):
|
||||
callback_name: str
|
||||
callback_type: Literal["success", "failure", "success_and_failure"]
|
||||
# for now - only supported for langfuse
|
||||
callback_vars: Dict[
|
||||
Literal["langfuse_public_key", "langfuse_secret_key", "langfuse_host"], str
|
||||
]
|
||||
|
||||
|
||||
class TeamCallbackMetadata(LiteLLMBase):
|
||||
success_callback: Optional[List[str]] = []
|
||||
failure_callback: Optional[List[str]] = []
|
||||
# for now - only supported for langfuse
|
||||
callback_vars: Optional[
|
||||
Dict[
|
||||
Literal["langfuse_public_key", "langfuse_secret_key", "langfuse_host"], str
|
||||
]
|
||||
] = {}
|
||||
|
||||
|
||||
class LiteLLM_TeamTable(TeamBase):
|
||||
spend: Optional[float] = None
|
||||
max_parallel_requests: Optional[int] = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue