mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
fix(api): sync guardrail schema artifacts
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
ef1a1f42ec
commit
748dcaa593
2 changed files with 124 additions and 2 deletions
|
|
@ -11259,6 +11259,77 @@
|
|||
"title": "GuardrailSubmissionSummary",
|
||||
"type": "object"
|
||||
},
|
||||
"GuardrailUIAddGuardrailSettings": {
|
||||
"properties": {
|
||||
"content_filter_settings": {
|
||||
"anyOf": [
|
||||
{
|
||||
"additionalProperties": true,
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Content Filter Settings"
|
||||
},
|
||||
"pii_entity_categories": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/PiiEntityCategoryMap"
|
||||
},
|
||||
"title": "Pii Entity Categories",
|
||||
"type": "array"
|
||||
},
|
||||
"providers_without_directional_logging_only_scope": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "Providers Without Directional Logging Only Scope",
|
||||
"type": "array"
|
||||
},
|
||||
"supported_actions": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "Supported Actions",
|
||||
"type": "array"
|
||||
},
|
||||
"supported_entities": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "Supported Entities",
|
||||
"type": "array"
|
||||
},
|
||||
"supported_modes": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "Supported Modes",
|
||||
"type": "array"
|
||||
},
|
||||
"supported_modes_by_provider": {
|
||||
"additionalProperties": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"title": "Supported Modes By Provider",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"supported_entities",
|
||||
"supported_actions",
|
||||
"supported_modes",
|
||||
"supported_modes_by_provider",
|
||||
"providers_without_directional_logging_only_scope",
|
||||
"pii_entity_categories"
|
||||
],
|
||||
"title": "GuardrailUIAddGuardrailSettings",
|
||||
"type": "object"
|
||||
},
|
||||
"HTTPValidationError": {
|
||||
"properties": {
|
||||
"detail": {
|
||||
|
|
@ -13419,6 +13490,27 @@
|
|||
"title": "PiiAction",
|
||||
"type": "string"
|
||||
},
|
||||
"PiiEntityCategoryMap": {
|
||||
"properties": {
|
||||
"category": {
|
||||
"title": "Category",
|
||||
"type": "string"
|
||||
},
|
||||
"entities": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": "Entities",
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"category",
|
||||
"entities"
|
||||
],
|
||||
"title": "PiiEntityCategoryMap",
|
||||
"type": "object"
|
||||
},
|
||||
"PiiEntityType": {
|
||||
"enum": [
|
||||
"CREDIT_CARD",
|
||||
|
|
@ -14860,7 +14952,9 @@
|
|||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {}
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/GuardrailUIAddGuardrailSettings"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Successful Response"
|
||||
|
|
|
|||
30
ui/litellm-dashboard/src/lib/http/schema.d.ts
generated
vendored
30
ui/litellm-dashboard/src/lib/http/schema.d.ts
generated
vendored
|
|
@ -31097,6 +31097,27 @@ export interface components {
|
|||
/** Output Text */
|
||||
output_text: string;
|
||||
};
|
||||
/** GuardrailUIAddGuardrailSettings */
|
||||
GuardrailUIAddGuardrailSettings: {
|
||||
/** Content Filter Settings */
|
||||
content_filter_settings?: {
|
||||
[key: string]: unknown;
|
||||
} | null;
|
||||
/** Pii Entity Categories */
|
||||
pii_entity_categories: components["schemas"]["PiiEntityCategoryMap"][];
|
||||
/** Providers Without Directional Logging Only Scope */
|
||||
providers_without_directional_logging_only_scope: string[];
|
||||
/** Supported Actions */
|
||||
supported_actions: string[];
|
||||
/** Supported Entities */
|
||||
supported_entities: string[];
|
||||
/** Supported Modes */
|
||||
supported_modes: string[];
|
||||
/** Supported Modes By Provider */
|
||||
supported_modes_by_provider: {
|
||||
[key: string]: string[];
|
||||
};
|
||||
};
|
||||
/**
|
||||
* HTTPAuthSecurityScheme
|
||||
* @description Defines a security scheme using HTTP authentication.
|
||||
|
|
@ -37909,6 +37930,13 @@ export interface components {
|
|||
* @enum {string}
|
||||
*/
|
||||
PiiAction: "BLOCK" | "MASK";
|
||||
/** PiiEntityCategoryMap */
|
||||
PiiEntityCategoryMap: {
|
||||
/** Category */
|
||||
category: string;
|
||||
/** Entities */
|
||||
entities: string[];
|
||||
};
|
||||
/**
|
||||
* PiiEntityType
|
||||
* @enum {string}
|
||||
|
|
@ -56403,7 +56431,7 @@ export interface operations {
|
|||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
"application/json": unknown;
|
||||
"application/json": components["schemas"]["GuardrailUIAddGuardrailSettings"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue