mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
fix(policy_engine): make priority migration idempotent
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
f5dea4de76
commit
1b1f6ada46
3 changed files with 47 additions and 1 deletions
|
|
@ -1 +1 @@
|
|||
ALTER TABLE "LiteLLM_PolicyAttachmentTable" ADD COLUMN "priority" INTEGER;
|
||||
ALTER TABLE "LiteLLM_PolicyAttachmentTable" ADD COLUMN IF NOT EXISTS "priority" INTEGER;
|
||||
|
|
|
|||
|
|
@ -33929,6 +33929,18 @@
|
|||
"title": "Policy Name",
|
||||
"type": "string"
|
||||
},
|
||||
"priority": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Explicit execution order, lower runs first. Prioritised attachments run before those without one.",
|
||||
"title": "Priority"
|
||||
},
|
||||
"scope": {
|
||||
"anyOf": [
|
||||
{
|
||||
|
|
@ -34042,6 +34054,18 @@
|
|||
"title": "Policy Name",
|
||||
"type": "string"
|
||||
},
|
||||
"priority": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Explicit execution order, lower runs first. Prioritised attachments run before those without one.",
|
||||
"title": "Priority"
|
||||
},
|
||||
"scope": {
|
||||
"anyOf": [
|
||||
{
|
||||
|
|
@ -36062,6 +36086,18 @@
|
|||
"title": "Policy Name",
|
||||
"type": "string"
|
||||
},
|
||||
"priority": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"description": "Explicit execution order, lower runs first. Prioritised attachments run before those without one.",
|
||||
"title": "Priority"
|
||||
},
|
||||
"scope": {
|
||||
"anyOf": [
|
||||
{
|
||||
|
|
|
|||
10
ui/litellm-dashboard/src/lib/http/schema.d.ts
generated
vendored
10
ui/litellm-dashboard/src/lib/http/schema.d.ts
generated
vendored
|
|
@ -34487,6 +34487,11 @@ export interface components {
|
|||
* @description Name of the policy to attach.
|
||||
*/
|
||||
policy_name: string;
|
||||
/**
|
||||
* Priority
|
||||
* @description Explicit execution order, lower runs first. Prioritised attachments run before those without one.
|
||||
*/
|
||||
priority?: number | null;
|
||||
/**
|
||||
* Scope
|
||||
* @description Use '*' for global scope (applies to all requests).
|
||||
|
|
@ -34545,6 +34550,11 @@ export interface components {
|
|||
* @description Name of the attached policy.
|
||||
*/
|
||||
policy_name: string;
|
||||
/**
|
||||
* Priority
|
||||
* @description Explicit execution order, lower runs first. Prioritised attachments run before those without one.
|
||||
*/
|
||||
priority?: number | null;
|
||||
/**
|
||||
* Scope
|
||||
* @description Scope of the attachment.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue