- Add mask_api_key() and is_masked_or_placeholder() to llm_provider service - Return masked keys in all provider CRUD endpoints - Reject masked/placeholder keys in fetch_models and test_provider_config - Show masked key with Change button in ProviderConfig.svelte edit form - Exclude masked keys from fetch-models, test, and submit payloads on frontend - Update semantics-core skill with clarified complexity tier rules - Switch agent modes from subagent to all
2968 lines
60 KiB
JSON
2968 lines
60 KiB
JSON
{
|
|
"SCIMMember": {
|
|
"properties": {
|
|
"value": {
|
|
"type": "string",
|
|
"title": "Value"
|
|
},
|
|
"display": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Display"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"value"
|
|
],
|
|
"title": "SCIMMember"
|
|
},
|
|
"SCIMPatchOp": {
|
|
"properties": {
|
|
"schemas": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array",
|
|
"title": "Schemas",
|
|
"default": [
|
|
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
|
|
]
|
|
},
|
|
"Operations": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/SCIMPatchOperation"
|
|
},
|
|
"type": "array",
|
|
"title": "Operations"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"Operations"
|
|
],
|
|
"title": "SCIMPatchOp"
|
|
},
|
|
"SCIMPatchOperation": {
|
|
"properties": {
|
|
"op": {
|
|
"type": "string",
|
|
"title": "Op"
|
|
},
|
|
"path": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Path"
|
|
},
|
|
"value": {
|
|
"anyOf": [
|
|
{},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Value"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"op"
|
|
],
|
|
"title": "SCIMPatchOperation"
|
|
},
|
|
"SCIMServiceProviderConfig": {
|
|
"properties": {
|
|
"schemas": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array",
|
|
"title": "Schemas",
|
|
"default": [
|
|
"urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig"
|
|
]
|
|
},
|
|
"patch": {
|
|
"$ref": "#/components/schemas/SCIMFeature",
|
|
"default": {
|
|
"supported": true
|
|
}
|
|
},
|
|
"bulk": {
|
|
"$ref": "#/components/schemas/SCIMFeature",
|
|
"default": {
|
|
"supported": false
|
|
}
|
|
},
|
|
"filter": {
|
|
"$ref": "#/components/schemas/SCIMFeature",
|
|
"default": {
|
|
"supported": false
|
|
}
|
|
},
|
|
"changePassword": {
|
|
"$ref": "#/components/schemas/SCIMFeature",
|
|
"default": {
|
|
"supported": false
|
|
}
|
|
},
|
|
"sort": {
|
|
"$ref": "#/components/schemas/SCIMFeature",
|
|
"default": {
|
|
"supported": false
|
|
}
|
|
},
|
|
"etag": {
|
|
"$ref": "#/components/schemas/SCIMFeature",
|
|
"default": {
|
|
"supported": false
|
|
}
|
|
},
|
|
"authenticationSchemes": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Authenticationschemes"
|
|
},
|
|
"meta": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Meta"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"title": "SCIMServiceProviderConfig"
|
|
},
|
|
"SCIMUser": {
|
|
"properties": {
|
|
"schemas": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array",
|
|
"title": "Schemas"
|
|
},
|
|
"id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Id"
|
|
},
|
|
"externalId": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Externalid"
|
|
},
|
|
"meta": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Meta"
|
|
},
|
|
"userName": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Username"
|
|
},
|
|
"name": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/SCIMUserName"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"displayName": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Displayname"
|
|
},
|
|
"active": {
|
|
"type": "boolean",
|
|
"title": "Active",
|
|
"default": true
|
|
},
|
|
"emails": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"$ref": "#/components/schemas/SCIMUserEmail"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Emails"
|
|
},
|
|
"groups": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"$ref": "#/components/schemas/SCIMUserGroup"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Groups"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"schemas"
|
|
],
|
|
"title": "SCIMUser"
|
|
},
|
|
"SCIMUserEmail": {
|
|
"properties": {
|
|
"value": {
|
|
"type": "string",
|
|
"format": "email",
|
|
"title": "Value"
|
|
},
|
|
"type": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Type"
|
|
},
|
|
"primary": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Primary"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"value"
|
|
],
|
|
"title": "SCIMUserEmail"
|
|
},
|
|
"SCIMUserGroup": {
|
|
"properties": {
|
|
"value": {
|
|
"type": "string",
|
|
"title": "Value"
|
|
},
|
|
"display": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Display"
|
|
},
|
|
"type": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Type",
|
|
"default": "direct"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"value"
|
|
],
|
|
"title": "SCIMUserGroup"
|
|
},
|
|
"SCIMUserName": {
|
|
"properties": {
|
|
"familyName": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Familyname"
|
|
},
|
|
"givenName": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Givenname"
|
|
},
|
|
"formatted": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Formatted"
|
|
},
|
|
"middleName": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Middlename"
|
|
},
|
|
"honorificPrefix": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Honorificprefix"
|
|
},
|
|
"honorificSuffix": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Honorificsuffix"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"title": "SCIMUserName"
|
|
},
|
|
"SSOConfig": {
|
|
"properties": {
|
|
"google_client_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Google Client Id",
|
|
"description": "Google OAuth Client ID for SSO authentication"
|
|
},
|
|
"google_client_secret": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Google Client Secret",
|
|
"description": "Google OAuth Client Secret for SSO authentication"
|
|
},
|
|
"microsoft_client_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Microsoft Client Id",
|
|
"description": "Microsoft OAuth Client ID for SSO authentication"
|
|
},
|
|
"microsoft_client_secret": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Microsoft Client Secret",
|
|
"description": "Microsoft OAuth Client Secret for SSO authentication"
|
|
},
|
|
"microsoft_tenant": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Microsoft Tenant",
|
|
"description": "Microsoft Azure Tenant ID for SSO authentication"
|
|
},
|
|
"generic_client_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Generic Client Id",
|
|
"description": "Generic OAuth Client ID for SSO authentication (used for Okta and other providers)"
|
|
},
|
|
"generic_client_secret": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Generic Client Secret",
|
|
"description": "Generic OAuth Client Secret for SSO authentication"
|
|
},
|
|
"generic_authorization_endpoint": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Generic Authorization Endpoint",
|
|
"description": "Authorization endpoint URL for generic OAuth provider"
|
|
},
|
|
"generic_token_endpoint": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Generic Token Endpoint",
|
|
"description": "Token endpoint URL for generic OAuth provider"
|
|
},
|
|
"generic_userinfo_endpoint": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Generic Userinfo Endpoint",
|
|
"description": "User info endpoint URL for generic OAuth provider"
|
|
},
|
|
"proxy_base_url": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Proxy Base Url",
|
|
"description": "Base URL of the proxy server for SSO redirects"
|
|
},
|
|
"user_email": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "User Email",
|
|
"description": "Email of the proxy admin user"
|
|
},
|
|
"ui_access_mode": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/AccessControl_UI_AccessMode"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Ui Access Mode",
|
|
"description": "Access mode for the UI"
|
|
},
|
|
"role_mappings": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/RoleMappings"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "Configuration for mapping SSO groups to LiteLLM roles based on group claims in the SSO token"
|
|
},
|
|
"team_mappings": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/TeamMappings"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "Configuration for mapping SSO JWT fields to team IDs. Takes precedence over config file settings."
|
|
}
|
|
},
|
|
"type": "object",
|
|
"title": "SSOConfig",
|
|
"description": "Configuration for SSO environment variables and settings"
|
|
},
|
|
"SSOSettingsResponse": {
|
|
"properties": {
|
|
"values": {
|
|
"additionalProperties": true,
|
|
"type": "object",
|
|
"title": "Values"
|
|
},
|
|
"field_schema": {
|
|
"additionalProperties": true,
|
|
"type": "object",
|
|
"title": "Field Schema"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"values",
|
|
"field_schema"
|
|
],
|
|
"title": "SSOSettingsResponse",
|
|
"description": "Response model for SSO settings"
|
|
},
|
|
"SearchTool": {
|
|
"properties": {
|
|
"search_tool_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Search Tool Id"
|
|
},
|
|
"search_tool_name": {
|
|
"type": "string",
|
|
"title": "Search Tool Name"
|
|
},
|
|
"litellm_params": {
|
|
"$ref": "#/components/schemas/SearchToolLiteLLMParams"
|
|
},
|
|
"search_tool_info": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Search Tool Info"
|
|
},
|
|
"created_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Created At"
|
|
},
|
|
"updated_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Updated At"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"search_tool_name",
|
|
"litellm_params"
|
|
],
|
|
"title": "SearchTool",
|
|
"description": "Search tool configuration.\n\nExample:\n {\n \"search_tool_id\": \"123e4567-e89b-12d3-a456-426614174000\",\n \"search_tool_name\": \"litellm-search\",\n \"litellm_params\": {\n \"search_provider\": \"perplexity\",\n \"api_key\": \"sk-...\"\n },\n \"search_tool_info\": {\n \"description\": \"Perplexity search tool\"\n }\n }"
|
|
},
|
|
"SearchToolInfoResponse": {
|
|
"properties": {
|
|
"search_tool_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Search Tool Id"
|
|
},
|
|
"search_tool_name": {
|
|
"type": "string",
|
|
"title": "Search Tool Name"
|
|
},
|
|
"litellm_params": {
|
|
"additionalProperties": true,
|
|
"type": "object",
|
|
"title": "Litellm Params"
|
|
},
|
|
"search_tool_info": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Search Tool Info"
|
|
},
|
|
"created_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Created At"
|
|
},
|
|
"updated_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Updated At"
|
|
},
|
|
"is_from_config": {
|
|
"anyOf": [
|
|
{
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Is From Config"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"title": "SearchToolInfoResponse",
|
|
"description": "Response model for search tool information."
|
|
},
|
|
"SearchToolLiteLLMParams": {
|
|
"properties": {
|
|
"search_provider": {
|
|
"type": "string",
|
|
"title": "Search Provider"
|
|
},
|
|
"api_key": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Api Key"
|
|
},
|
|
"api_base": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Api Base"
|
|
},
|
|
"timeout": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Timeout"
|
|
},
|
|
"max_retries": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Max Retries"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"search_provider"
|
|
],
|
|
"title": "SearchToolLiteLLMParams",
|
|
"description": "LiteLLM params for search tools configuration."
|
|
},
|
|
"Skill": {
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"title": "Id"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"title": "Created At"
|
|
},
|
|
"display_title": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Display Title"
|
|
},
|
|
"latest_version": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Latest Version"
|
|
},
|
|
"source": {
|
|
"type": "string",
|
|
"title": "Source"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"title": "Type",
|
|
"default": "skill"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"title": "Updated At"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"created_at",
|
|
"source",
|
|
"updated_at"
|
|
],
|
|
"title": "Skill",
|
|
"description": "Represents a skill from the Anthropic Skills API"
|
|
},
|
|
"SpendAnalyticsPaginatedResponse": {
|
|
"properties": {
|
|
"results": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/DailySpendData"
|
|
},
|
|
"type": "array",
|
|
"title": "Results"
|
|
},
|
|
"metadata": {
|
|
"$ref": "#/components/schemas/DailySpendMetadata"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"results"
|
|
],
|
|
"title": "SpendAnalyticsPaginatedResponse"
|
|
},
|
|
"SpendCalculateRequest": {
|
|
"properties": {
|
|
"model": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Model"
|
|
},
|
|
"messages": {
|
|
"anyOf": [
|
|
{
|
|
"items": {},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Messages"
|
|
},
|
|
"completion_response": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Completion Response"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"title": "SpendCalculateRequest"
|
|
},
|
|
"SpendMetrics": {
|
|
"properties": {
|
|
"spend": {
|
|
"type": "number",
|
|
"title": "Spend",
|
|
"default": 0.0
|
|
},
|
|
"prompt_tokens": {
|
|
"type": "integer",
|
|
"title": "Prompt Tokens",
|
|
"default": 0
|
|
},
|
|
"completion_tokens": {
|
|
"type": "integer",
|
|
"title": "Completion Tokens",
|
|
"default": 0
|
|
},
|
|
"cache_read_input_tokens": {
|
|
"type": "integer",
|
|
"title": "Cache Read Input Tokens",
|
|
"default": 0
|
|
},
|
|
"cache_creation_input_tokens": {
|
|
"type": "integer",
|
|
"title": "Cache Creation Input Tokens",
|
|
"default": 0
|
|
},
|
|
"total_tokens": {
|
|
"type": "integer",
|
|
"title": "Total Tokens",
|
|
"default": 0
|
|
},
|
|
"successful_requests": {
|
|
"type": "integer",
|
|
"title": "Successful Requests",
|
|
"default": 0
|
|
},
|
|
"failed_requests": {
|
|
"type": "integer",
|
|
"title": "Failed Requests",
|
|
"default": 0
|
|
},
|
|
"api_requests": {
|
|
"type": "integer",
|
|
"title": "Api Requests",
|
|
"default": 0
|
|
}
|
|
},
|
|
"type": "object",
|
|
"title": "SpendMetrics"
|
|
},
|
|
"SuccessfulKeyUpdate": {
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"title": "Key"
|
|
},
|
|
"key_info": {
|
|
"additionalProperties": true,
|
|
"type": "object",
|
|
"title": "Key Info"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"key",
|
|
"key_info"
|
|
],
|
|
"title": "SuccessfulKeyUpdate",
|
|
"description": "Successfully updated key with its updated information"
|
|
},
|
|
"SuggestTemplatesRequest": {
|
|
"properties": {
|
|
"attack_examples": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array",
|
|
"title": "Attack Examples"
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"title": "Description",
|
|
"default": ""
|
|
},
|
|
"model": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Model"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"title": "SuggestTemplatesRequest"
|
|
},
|
|
"SupportedEndpoint": {
|
|
"properties": {
|
|
"key": {
|
|
"type": "string",
|
|
"title": "Key"
|
|
},
|
|
"label": {
|
|
"type": "string",
|
|
"title": "Label"
|
|
},
|
|
"endpoint": {
|
|
"type": "string",
|
|
"title": "Endpoint"
|
|
},
|
|
"providers": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/EndpointProvider"
|
|
},
|
|
"type": "array",
|
|
"title": "Providers"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"key",
|
|
"label",
|
|
"endpoint",
|
|
"providers"
|
|
],
|
|
"title": "SupportedEndpoint"
|
|
},
|
|
"SupportedEndpointsResponse": {
|
|
"properties": {
|
|
"endpoints": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/SupportedEndpoint"
|
|
},
|
|
"type": "array",
|
|
"title": "Endpoints"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"endpoints"
|
|
],
|
|
"title": "SupportedEndpointsResponse"
|
|
},
|
|
"TagActiveUsersResponse": {
|
|
"properties": {
|
|
"tag": {
|
|
"type": "string",
|
|
"title": "Tag"
|
|
},
|
|
"active_users": {
|
|
"type": "integer",
|
|
"title": "Active Users"
|
|
},
|
|
"date": {
|
|
"type": "string",
|
|
"title": "Date"
|
|
},
|
|
"period_start": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Period Start"
|
|
},
|
|
"period_end": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Period End"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"tag",
|
|
"active_users",
|
|
"date"
|
|
],
|
|
"title": "TagActiveUsersResponse",
|
|
"description": "Response for tag active users metrics"
|
|
},
|
|
"TagDeleteRequest": {
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"title": "Name"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"name"
|
|
],
|
|
"title": "TagDeleteRequest"
|
|
},
|
|
"TagInfoRequest": {
|
|
"properties": {
|
|
"names": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array",
|
|
"title": "Names"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"names"
|
|
],
|
|
"title": "TagInfoRequest"
|
|
},
|
|
"TagNewRequest": {
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"title": "Name"
|
|
},
|
|
"description": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Description"
|
|
},
|
|
"models": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Models"
|
|
},
|
|
"model_info": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Model Info"
|
|
},
|
|
"budget_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Budget Id"
|
|
},
|
|
"max_budget": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Max Budget"
|
|
},
|
|
"soft_budget": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Soft Budget"
|
|
},
|
|
"max_parallel_requests": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Max Parallel Requests"
|
|
},
|
|
"tpm_limit": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Tpm Limit"
|
|
},
|
|
"rpm_limit": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Rpm Limit"
|
|
},
|
|
"model_max_budget": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Model Max Budget"
|
|
},
|
|
"budget_duration": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Budget Duration"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"name"
|
|
],
|
|
"title": "TagNewRequest"
|
|
},
|
|
"TagSummaryMetrics": {
|
|
"properties": {
|
|
"tag": {
|
|
"type": "string",
|
|
"title": "Tag"
|
|
},
|
|
"unique_users": {
|
|
"type": "integer",
|
|
"title": "Unique Users"
|
|
},
|
|
"total_requests": {
|
|
"type": "integer",
|
|
"title": "Total Requests"
|
|
},
|
|
"successful_requests": {
|
|
"type": "integer",
|
|
"title": "Successful Requests"
|
|
},
|
|
"failed_requests": {
|
|
"type": "integer",
|
|
"title": "Failed Requests"
|
|
},
|
|
"total_tokens": {
|
|
"type": "integer",
|
|
"title": "Total Tokens"
|
|
},
|
|
"total_spend": {
|
|
"type": "number",
|
|
"title": "Total Spend"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"tag",
|
|
"unique_users",
|
|
"total_requests",
|
|
"successful_requests",
|
|
"failed_requests",
|
|
"total_tokens",
|
|
"total_spend"
|
|
],
|
|
"title": "TagSummaryMetrics",
|
|
"description": "Summary metrics for a tag"
|
|
},
|
|
"TagSummaryResponse": {
|
|
"properties": {
|
|
"results": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/TagSummaryMetrics"
|
|
},
|
|
"type": "array",
|
|
"title": "Results"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"results"
|
|
],
|
|
"title": "TagSummaryResponse",
|
|
"description": "Response for tag summary analytics"
|
|
},
|
|
"TagUpdateRequest": {
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"title": "Name"
|
|
},
|
|
"description": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Description"
|
|
},
|
|
"models": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Models"
|
|
},
|
|
"model_info": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Model Info"
|
|
},
|
|
"budget_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Budget Id"
|
|
},
|
|
"max_budget": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Max Budget"
|
|
},
|
|
"soft_budget": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Soft Budget"
|
|
},
|
|
"max_parallel_requests": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Max Parallel Requests"
|
|
},
|
|
"tpm_limit": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Tpm Limit"
|
|
},
|
|
"rpm_limit": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Rpm Limit"
|
|
},
|
|
"model_max_budget": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Model Max Budget"
|
|
},
|
|
"budget_duration": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Budget Duration"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"name"
|
|
],
|
|
"title": "TagUpdateRequest"
|
|
},
|
|
"TeamAddMemberResponse": {
|
|
"properties": {
|
|
"team_alias": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Team Alias"
|
|
},
|
|
"team_id": {
|
|
"type": "string",
|
|
"title": "Team Id"
|
|
},
|
|
"organization_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Organization Id"
|
|
},
|
|
"admins": {
|
|
"items": {},
|
|
"type": "array",
|
|
"title": "Admins",
|
|
"default": []
|
|
},
|
|
"members": {
|
|
"items": {},
|
|
"type": "array",
|
|
"title": "Members",
|
|
"default": []
|
|
},
|
|
"members_with_roles": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/Member"
|
|
},
|
|
"type": "array",
|
|
"title": "Members With Roles",
|
|
"default": []
|
|
},
|
|
"team_member_permissions": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Team Member Permissions"
|
|
},
|
|
"metadata": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Metadata"
|
|
},
|
|
"tpm_limit": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Tpm Limit"
|
|
},
|
|
"rpm_limit": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Rpm Limit"
|
|
},
|
|
"max_budget": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Max Budget"
|
|
},
|
|
"soft_budget": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Soft Budget"
|
|
},
|
|
"budget_duration": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Budget Duration"
|
|
},
|
|
"models": {
|
|
"items": {},
|
|
"type": "array",
|
|
"title": "Models",
|
|
"default": []
|
|
},
|
|
"blocked": {
|
|
"type": "boolean",
|
|
"title": "Blocked",
|
|
"default": false
|
|
},
|
|
"router_settings": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Router Settings"
|
|
},
|
|
"access_group_ids": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Access Group Ids"
|
|
},
|
|
"spend": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Spend"
|
|
},
|
|
"max_parallel_requests": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Max Parallel Requests"
|
|
},
|
|
"budget_reset_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Budget Reset At"
|
|
},
|
|
"model_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Model Id"
|
|
},
|
|
"litellm_model_table": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/LiteLLM_ModelTable"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"object_permission": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/LiteLLM_ObjectPermissionTable"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"updated_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Updated At"
|
|
},
|
|
"created_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Created At"
|
|
},
|
|
"object_permission_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Object Permission Id"
|
|
},
|
|
"updated_users": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/LiteLLM_UserTable"
|
|
},
|
|
"type": "array",
|
|
"title": "Updated Users"
|
|
},
|
|
"updated_team_memberships": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/LiteLLM_TeamMembership"
|
|
},
|
|
"type": "array",
|
|
"title": "Updated Team Memberships"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"team_id",
|
|
"updated_users",
|
|
"updated_team_memberships"
|
|
],
|
|
"title": "TeamAddMemberResponse"
|
|
},
|
|
"TeamListItem": {
|
|
"properties": {
|
|
"team_alias": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Team Alias"
|
|
},
|
|
"team_id": {
|
|
"type": "string",
|
|
"title": "Team Id"
|
|
},
|
|
"organization_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Organization Id"
|
|
},
|
|
"admins": {
|
|
"items": {},
|
|
"type": "array",
|
|
"title": "Admins",
|
|
"default": []
|
|
},
|
|
"members": {
|
|
"items": {},
|
|
"type": "array",
|
|
"title": "Members",
|
|
"default": []
|
|
},
|
|
"members_with_roles": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/Member"
|
|
},
|
|
"type": "array",
|
|
"title": "Members With Roles",
|
|
"default": []
|
|
},
|
|
"team_member_permissions": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Team Member Permissions"
|
|
},
|
|
"metadata": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Metadata"
|
|
},
|
|
"tpm_limit": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Tpm Limit"
|
|
},
|
|
"rpm_limit": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Rpm Limit"
|
|
},
|
|
"max_budget": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Max Budget"
|
|
},
|
|
"soft_budget": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Soft Budget"
|
|
},
|
|
"budget_duration": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Budget Duration"
|
|
},
|
|
"models": {
|
|
"items": {},
|
|
"type": "array",
|
|
"title": "Models",
|
|
"default": []
|
|
},
|
|
"blocked": {
|
|
"type": "boolean",
|
|
"title": "Blocked",
|
|
"default": false
|
|
},
|
|
"router_settings": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Router Settings"
|
|
},
|
|
"access_group_ids": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Access Group Ids"
|
|
},
|
|
"spend": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Spend"
|
|
},
|
|
"max_parallel_requests": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Max Parallel Requests"
|
|
},
|
|
"budget_reset_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Budget Reset At"
|
|
},
|
|
"model_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Model Id"
|
|
},
|
|
"litellm_model_table": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/LiteLLM_ModelTable"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"object_permission": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/LiteLLM_ObjectPermissionTable"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"updated_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Updated At"
|
|
},
|
|
"created_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Created At"
|
|
},
|
|
"object_permission_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Object Permission Id"
|
|
},
|
|
"members_count": {
|
|
"type": "integer",
|
|
"title": "Members Count",
|
|
"default": 0
|
|
},
|
|
"access_group_models": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Access Group Models"
|
|
},
|
|
"access_group_mcp_server_ids": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Access Group Mcp Server Ids"
|
|
},
|
|
"access_group_agent_ids": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Access Group Agent Ids"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"team_id"
|
|
],
|
|
"title": "TeamListItem",
|
|
"description": "A team item in the paginated list response, enriched with computed fields."
|
|
},
|
|
"TeamListResponse": {
|
|
"properties": {
|
|
"teams": {
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/components/schemas/TeamListItem"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/LiteLLM_TeamTable"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/LiteLLM_DeletedTeamTable"
|
|
}
|
|
]
|
|
},
|
|
"type": "array",
|
|
"title": "Teams"
|
|
},
|
|
"total": {
|
|
"type": "integer",
|
|
"title": "Total"
|
|
},
|
|
"page": {
|
|
"type": "integer",
|
|
"title": "Page"
|
|
},
|
|
"page_size": {
|
|
"type": "integer",
|
|
"title": "Page Size"
|
|
},
|
|
"total_pages": {
|
|
"type": "integer",
|
|
"title": "Total Pages"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"teams",
|
|
"total",
|
|
"page",
|
|
"page_size",
|
|
"total_pages"
|
|
],
|
|
"title": "TeamListResponse",
|
|
"description": "Response to get the list of teams"
|
|
},
|
|
"TeamMappings": {
|
|
"properties": {
|
|
"team_ids_jwt_field": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Team Ids Jwt Field",
|
|
"description": "The field name in the SSO/JWT token that contains the team IDs array (e.g., 'groups', 'teams'). Supports dot notation for nested fields."
|
|
}
|
|
},
|
|
"type": "object",
|
|
"title": "TeamMappings",
|
|
"description": "Configuration for mapping SSO JWT fields to team IDs.\n\nThis allows configuring team_ids_jwt_field via the database instead of\nrequiring config file changes and restarts."
|
|
},
|
|
"TeamMemberAddRequest": {
|
|
"properties": {
|
|
"member": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"$ref": "#/components/schemas/Member"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"$ref": "#/components/schemas/Member"
|
|
}
|
|
],
|
|
"title": "Member",
|
|
"description": "Member object or list of member objects to add. Each member must include either user_id or user_email, and a role"
|
|
},
|
|
"team_id": {
|
|
"type": "string",
|
|
"title": "Team Id",
|
|
"description": "The ID of the team to add the member to"
|
|
},
|
|
"max_budget_in_team": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Max Budget In Team",
|
|
"description": "Maximum budget allocated to this user within the team. If not set, user has unlimited budget within team limits"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"member",
|
|
"team_id"
|
|
],
|
|
"title": "TeamMemberAddRequest",
|
|
"description": "Request body for adding members to a team.\n\nExample:\n```json\n{\n \"team_id\": \"45e3e396-ee08-4a61-a88e-16b3ce7e0849\",\n \"member\": {\n \"role\": \"user\",\n \"user_id\": \"user123\"\n },\n \"max_budget_in_team\": 100.0\n}\n```"
|
|
},
|
|
"TeamMemberAddResult": {
|
|
"properties": {
|
|
"user_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "User Id"
|
|
},
|
|
"user_email": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "User Email"
|
|
},
|
|
"success": {
|
|
"type": "boolean",
|
|
"title": "Success"
|
|
},
|
|
"error": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Error"
|
|
},
|
|
"updated_user": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Updated User"
|
|
},
|
|
"updated_team_membership": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Updated Team Membership"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"success"
|
|
],
|
|
"title": "TeamMemberAddResult",
|
|
"description": "Result of a single team member add operation"
|
|
},
|
|
"TeamMemberDeleteRequest": {
|
|
"properties": {
|
|
"user_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "User Id"
|
|
},
|
|
"user_email": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "User Email"
|
|
},
|
|
"team_id": {
|
|
"type": "string",
|
|
"title": "Team Id"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"team_id"
|
|
],
|
|
"title": "TeamMemberDeleteRequest"
|
|
},
|
|
"TeamMemberUpdateRequest": {
|
|
"properties": {
|
|
"user_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "User Id"
|
|
},
|
|
"user_email": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "User Email"
|
|
},
|
|
"team_id": {
|
|
"type": "string",
|
|
"title": "Team Id"
|
|
},
|
|
"max_budget_in_team": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Max Budget In Team"
|
|
},
|
|
"role": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"user"
|
|
]
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Role"
|
|
},
|
|
"tpm_limit": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Tpm Limit",
|
|
"description": "Tokens per minute limit for this team member"
|
|
},
|
|
"rpm_limit": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Rpm Limit",
|
|
"description": "Requests per minute limit for this team member"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"team_id"
|
|
],
|
|
"title": "TeamMemberUpdateRequest"
|
|
},
|
|
"TeamMemberUpdateResponse": {
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string",
|
|
"title": "User Id"
|
|
},
|
|
"user_email": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "User Email"
|
|
},
|
|
"team_id": {
|
|
"type": "string",
|
|
"title": "Team Id"
|
|
},
|
|
"max_budget_in_team": {
|
|
"anyOf": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Max Budget In Team"
|
|
},
|
|
"tpm_limit": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Tpm Limit"
|
|
},
|
|
"rpm_limit": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Rpm Limit"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"user_id",
|
|
"team_id"
|
|
],
|
|
"title": "TeamMemberUpdateResponse"
|
|
},
|
|
"TeamModelAddRequest": {
|
|
"properties": {
|
|
"team_id": {
|
|
"type": "string",
|
|
"title": "Team Id"
|
|
},
|
|
"models": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array",
|
|
"title": "Models"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"team_id",
|
|
"models"
|
|
],
|
|
"title": "TeamModelAddRequest",
|
|
"description": "Request to add models to a team"
|
|
},
|
|
"TeamModelDeleteRequest": {
|
|
"properties": {
|
|
"team_id": {
|
|
"type": "string",
|
|
"title": "Team Id"
|
|
},
|
|
"models": {
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array",
|
|
"title": "Models"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"team_id",
|
|
"models"
|
|
],
|
|
"title": "TeamModelDeleteRequest",
|
|
"description": "Request to delete models from a team"
|
|
},
|
|
"TestCustomCodeGuardrailRequest": {
|
|
"properties": {
|
|
"custom_code": {
|
|
"type": "string",
|
|
"title": "Custom Code"
|
|
},
|
|
"test_input": {
|
|
"additionalProperties": true,
|
|
"type": "object",
|
|
"title": "Test Input"
|
|
},
|
|
"input_type": {
|
|
"type": "string",
|
|
"title": "Input Type",
|
|
"default": "request"
|
|
},
|
|
"request_data": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Request Data"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"custom_code",
|
|
"test_input"
|
|
],
|
|
"title": "TestCustomCodeGuardrailRequest",
|
|
"description": "Request model for testing custom code guardrails."
|
|
},
|
|
"TestCustomCodeGuardrailResponse": {
|
|
"properties": {
|
|
"success": {
|
|
"type": "boolean",
|
|
"title": "Success"
|
|
},
|
|
"result": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Result"
|
|
},
|
|
"error": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Error"
|
|
},
|
|
"error_type": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Error Type"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"success"
|
|
],
|
|
"title": "TestCustomCodeGuardrailResponse",
|
|
"description": "Response model for testing custom code guardrails."
|
|
},
|
|
"TestPoliciesAndGuardrailsRequest": {
|
|
"properties": {
|
|
"policy_names": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Policy Names",
|
|
"description": "Policy names to resolve guardrails from"
|
|
},
|
|
"guardrail_names": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Guardrail Names",
|
|
"description": "Guardrail names to apply directly"
|
|
},
|
|
"inputs_list": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/GenericGuardrailAPIInputs"
|
|
},
|
|
"type": "array",
|
|
"title": "Inputs List",
|
|
"description": "List of GenericGuardrailAPIInputs; each item processed separately (for batch compliance testing).",
|
|
"default": []
|
|
},
|
|
"request_data": {
|
|
"additionalProperties": true,
|
|
"type": "object",
|
|
"title": "Request Data",
|
|
"description": "Request context (model, user_id, etc.)"
|
|
},
|
|
"input_type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"request",
|
|
"response"
|
|
],
|
|
"title": "Input Type",
|
|
"description": "Whether inputs are request or response",
|
|
"default": "request"
|
|
},
|
|
"agent_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Agent Id",
|
|
"description": "When set, call chat completion with this model/agent for each input and include the response in the result."
|
|
}
|
|
},
|
|
"type": "object",
|
|
"title": "TestPoliciesAndGuardrailsRequest",
|
|
"description": "Request body for POST /utils/test_policies_and_guardrails."
|
|
},
|
|
"TestPolicyTemplateRequest": {
|
|
"properties": {
|
|
"guardrail_definitions": {
|
|
"items": {
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
"type": "array",
|
|
"title": "Guardrail Definitions",
|
|
"description": "All guardrailDefinitions from the policy template"
|
|
},
|
|
"text": {
|
|
"type": "string",
|
|
"title": "Text",
|
|
"description": "Test input text to run guardrails against"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"guardrail_definitions",
|
|
"text"
|
|
],
|
|
"title": "TestPolicyTemplateRequest"
|
|
},
|
|
"TestPolicyTemplateResponse": {
|
|
"properties": {
|
|
"overall_action": {
|
|
"type": "string",
|
|
"title": "Overall Action"
|
|
},
|
|
"results": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/GuardrailTestResultEntry"
|
|
},
|
|
"type": "array",
|
|
"title": "Results"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"overall_action",
|
|
"results"
|
|
],
|
|
"title": "TestPolicyTemplateResponse"
|
|
},
|
|
"TestPromptRequest": {
|
|
"properties": {
|
|
"dotprompt_content": {
|
|
"type": "string",
|
|
"title": "Dotprompt Content"
|
|
},
|
|
"prompt_variables": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Prompt Variables"
|
|
},
|
|
"conversation_history": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Conversation History"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"dotprompt_content"
|
|
],
|
|
"title": "TestPromptRequest"
|
|
},
|
|
"TestSearchToolConnectionRequest": {
|
|
"properties": {
|
|
"litellm_params": {
|
|
"additionalProperties": true,
|
|
"type": "object",
|
|
"title": "Litellm Params"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"litellm_params"
|
|
],
|
|
"title": "TestSearchToolConnectionRequest"
|
|
},
|
|
"TokenCountDetailsResponse": {
|
|
"properties": {
|
|
"totalTokens": {
|
|
"type": "integer",
|
|
"title": "Totaltokens"
|
|
},
|
|
"promptTokensDetails": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/PromptTokensDetails"
|
|
},
|
|
"type": "array",
|
|
"title": "Prompttokensdetails"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"totalTokens",
|
|
"promptTokensDetails"
|
|
],
|
|
"title": "TokenCountDetailsResponse",
|
|
"description": "Response structure for token count details with modality breakdown.\n\nExample:\n {'totalTokens': 12, 'promptTokensDetails': [{'modality': 'TEXT', 'tokenCount': 12}]}"
|
|
},
|
|
"TokenCountRequest": {
|
|
"properties": {
|
|
"model": {
|
|
"type": "string",
|
|
"title": "Model"
|
|
},
|
|
"prompt": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Prompt"
|
|
},
|
|
"messages": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Messages"
|
|
},
|
|
"contents": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Contents"
|
|
},
|
|
"tools": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Tools"
|
|
},
|
|
"system": {
|
|
"anyOf": [
|
|
{},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "System"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"model"
|
|
],
|
|
"title": "TokenCountRequest"
|
|
},
|
|
"TokenCountResponse": {
|
|
"properties": {
|
|
"total_tokens": {
|
|
"type": "integer",
|
|
"title": "Total Tokens"
|
|
},
|
|
"request_model": {
|
|
"type": "string",
|
|
"title": "Request Model"
|
|
},
|
|
"model_used": {
|
|
"type": "string",
|
|
"title": "Model Used"
|
|
},
|
|
"tokenizer_type": {
|
|
"type": "string",
|
|
"title": "Tokenizer Type"
|
|
},
|
|
"original_response": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Original Response"
|
|
},
|
|
"error": {
|
|
"type": "boolean",
|
|
"title": "Error",
|
|
"default": false
|
|
},
|
|
"error_message": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Error Message"
|
|
},
|
|
"status_code": {
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Status Code"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"total_tokens",
|
|
"request_model",
|
|
"model_used",
|
|
"tokenizer_type"
|
|
],
|
|
"title": "TokenCountResponse"
|
|
},
|
|
"ToolDetailResponse": {
|
|
"properties": {
|
|
"tool": {
|
|
"$ref": "#/components/schemas/LiteLLM_ToolTableRow"
|
|
},
|
|
"overrides": {
|
|
"items": {
|
|
"$ref": "#/components/schemas/ToolPolicyOverrideRow"
|
|
},
|
|
"type": "array",
|
|
"title": "Overrides"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"required": [
|
|
"tool"
|
|
],
|
|
"title": "ToolDetailResponse"
|
|
}
|
|
} |