mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
chore(backport): regenerate the openapi snapshot and dashboard api types for stable/1.100.x
The #41615 and #41757 picks brought litellm/proxy/_lazy_openapi_snapshot.json and ui/litellm-dashboard/src/lib/http/schema.d.ts verbatim from main. Both files were regenerated under Python 3.12.
This commit is contained in:
parent
c3c466a5c1
commit
12ef369373
2 changed files with 53 additions and 63 deletions
|
|
@ -9752,13 +9752,7 @@
|
|||
},
|
||||
"unreachable_fallback": {
|
||||
"default": "fail_closed",
|
||||
<<<<<<< HEAD
|
||||
"description": "Behavior when a guardrail endpoint is unreachable due to network errors. Implemented by guardrail='generic_guardrail_api', 'akto', 'vigil_guard', 'repelloai', 'headroom', and 'compresr'. 'fail_closed' raises an error (default). 'fail_open' logs a critical error and allows the request to proceed.",
|
||||
||||||| parent of 2edda5aec3 (Merge pull request #41757 from BerriAI/litellm_typesafe_compaction_guardrail)
|
||||
"description": "Behavior when a guardrail endpoint is unreachable due to network errors. Implemented by guardrail='generic_guardrail_api', 'agent_365', 'akto', 'vigil_guard', 'repelloai', 'headroom', 'compresr', and 'typesafe'. 'fail_closed' raises an error (default). 'fail_open' logs a critical error and allows the request to proceed.",
|
||||
=======
|
||||
"description": "Behavior when a guardrail endpoint is unreachable due to network errors. Implemented by guardrail='generic_guardrail_api', 'agent_365', 'akto', 'vigil_guard', 'repelloai', 'headroom', 'compresr', and 'typesafe'. 'fail_closed' raises an error (default). 'fail_open' logs a critical error and allows the request to proceed.",
|
||||
>>>>>>> 2edda5aec3 (Merge pull request #41757 from BerriAI/litellm_typesafe_compaction_guardrail)
|
||||
"enum": [
|
||||
"fail_closed",
|
||||
"fail_open"
|
||||
|
|
|
|||
110
ui/litellm-dashboard/src/lib/http/schema.d.ts
generated
vendored
110
ui/litellm-dashboard/src/lib/http/schema.d.ts
generated
vendored
|
|
@ -1390,8 +1390,8 @@ export interface paths {
|
|||
*
|
||||
* Runs the same check every write path runs (the router's own pydantic model), so a form can
|
||||
* show the backend's exact verdict while the operator is still editing rather than after a
|
||||
* rejected save. Gated exactly like the save it rehearses: a proxy admin, or a team admin
|
||||
* naming their own team. Nothing is created, routed, or billed.
|
||||
* rejected save. Uses the same team opt-in and model-access checks as configuration
|
||||
* writes for members. Nothing is created, routed, or billed.
|
||||
*/
|
||||
post: operations["validate_complexity_router_config_auto_router_validate_complexity_router_config_post"];
|
||||
delete?: never;
|
||||
|
|
@ -22495,44 +22495,6 @@ export interface components {
|
|||
/** Updated By */
|
||||
updated_by?: string | null;
|
||||
};
|
||||
/** JevClassifierConfig */
|
||||
JevClassifierConfig: {
|
||||
/**
|
||||
* Api Base
|
||||
* @description TypeSafe API base, falling back to TYPESAFE_API_BASE and then https://api.typesafe.ai
|
||||
*/
|
||||
api_base?: string | null;
|
||||
/**
|
||||
* Api Key
|
||||
* @description TypeSafe API key, falling back to TYPESAFE_API_KEY
|
||||
*/
|
||||
api_key?: string | null;
|
||||
/**
|
||||
* Circuit Breaker Cooldown Seconds
|
||||
* @default 30
|
||||
*/
|
||||
circuit_breaker_cooldown_seconds: number;
|
||||
/**
|
||||
* Circuit Breaker Enabled
|
||||
* @default true
|
||||
*/
|
||||
circuit_breaker_enabled: boolean;
|
||||
/**
|
||||
* Instructions
|
||||
* @description Replaces the built-in Jev question instructions
|
||||
*/
|
||||
instructions?: string | null;
|
||||
/**
|
||||
* Model
|
||||
* @default jev-latest
|
||||
*/
|
||||
model: string;
|
||||
/**
|
||||
* Timeout Ms
|
||||
* @default 3000
|
||||
*/
|
||||
timeout_ms: number;
|
||||
};
|
||||
/** AccessGroupUpdateRequest */
|
||||
AccessGroupUpdateRequest: {
|
||||
/** Access Agent Ids */
|
||||
|
|
@ -23006,11 +22968,6 @@ export interface components {
|
|||
* @description The auto-router alias requests were sent to
|
||||
*/
|
||||
router_name: string;
|
||||
/**
|
||||
* Saved Model Id
|
||||
* @description Test this saved deployment's server-side configuration instead of the supplied config and default model
|
||||
*/
|
||||
saved_model_id?: string | null;
|
||||
/**
|
||||
* Router Type
|
||||
* @description complexity, adaptive or quality
|
||||
|
|
@ -23247,6 +23204,11 @@ export interface components {
|
|||
* @default auto_router_routing_test
|
||||
*/
|
||||
router_name: string;
|
||||
/**
|
||||
* Saved Model Id
|
||||
* @description Test this saved deployment's server-side configuration instead of the supplied config and default model
|
||||
*/
|
||||
saved_model_id?: string | null;
|
||||
/**
|
||||
* System
|
||||
* @description The top-level system prompt an Anthropic /v1/messages body carries beside its messages
|
||||
|
|
@ -23506,7 +23468,7 @@ export interface components {
|
|||
timeout?: number | null;
|
||||
/**
|
||||
* Unreachable Fallback
|
||||
* @description Behavior when a guardrail endpoint is unreachable due to network errors. Implemented by guardrail='generic_guardrail_api', 'akto', 'vigil_guard', 'repelloai', 'headroom', and 'compresr'. 'fail_closed' raises an error (default). 'fail_open' logs a critical error and allows the request to proceed.
|
||||
* @description Behavior when a guardrail endpoint is unreachable due to network errors. Implemented by guardrail='generic_guardrail_api', 'agent_365', 'akto', 'vigil_guard', 'repelloai', 'headroom', 'compresr', and 'typesafe'. 'fail_closed' raises an error (default). 'fail_open' logs a critical error and allows the request to proceed.
|
||||
* @default fail_closed
|
||||
* @enum {string}
|
||||
*/
|
||||
|
|
@ -27668,6 +27630,44 @@ export interface components {
|
|||
/** Updated By */
|
||||
updated_by?: string | null;
|
||||
};
|
||||
/** JevClassifierConfig */
|
||||
JevClassifierConfig: {
|
||||
/**
|
||||
* Api Base
|
||||
* @description TypeSafe API base, falling back to TYPESAFE_API_BASE and then https://api.typesafe.ai
|
||||
*/
|
||||
api_base?: string | null;
|
||||
/**
|
||||
* Api Key
|
||||
* @description TypeSafe API key, falling back to TYPESAFE_API_KEY
|
||||
*/
|
||||
api_key?: string | null;
|
||||
/**
|
||||
* Circuit Breaker Cooldown Seconds
|
||||
* @default 30
|
||||
*/
|
||||
circuit_breaker_cooldown_seconds: number;
|
||||
/**
|
||||
* Circuit Breaker Enabled
|
||||
* @default true
|
||||
*/
|
||||
circuit_breaker_enabled: boolean;
|
||||
/**
|
||||
* Instructions
|
||||
* @description Replaces the built-in Jev question instructions
|
||||
*/
|
||||
instructions?: string | null;
|
||||
/**
|
||||
* Model
|
||||
* @default jev-latest
|
||||
*/
|
||||
model: string;
|
||||
/**
|
||||
* Timeout Ms
|
||||
* @default 3000
|
||||
*/
|
||||
timeout_ms: number;
|
||||
};
|
||||
/** KeyHealthResponse */
|
||||
KeyHealthResponse: {
|
||||
/**
|
||||
|
|
@ -27693,7 +27693,7 @@ export interface components {
|
|||
* @description Enum for key management routes
|
||||
* @enum {string}
|
||||
*/
|
||||
KeyManagementRoutes: "/key/generate" | "/key/update" | "/key/delete" | "/key/regenerate" | "/key/service-account/generate" | "/key/{key_id}/regenerate" | "/key/block" | "/key/unblock" | "/key/bulk_update" | "/team/key/bulk_update" | "/key/{key_id}/reset_spend" | "/key/access_group_assignment" | "/key/info" | "/key/health" | "/key/list" | "/key/aliases" | "/team/daily/activity" | "/team/daily/activity/aggregated" | "/spend/logs" | "/spend/logs/v2";
|
||||
KeyManagementRoutes: "/key/generate" | "/key/update" | "/key/delete" | "/key/regenerate" | "/key/service-account/generate" | "/key/{key_id}/regenerate" | "/key/block" | "/key/unblock" | "/key/bulk_update" | "/team/key/bulk_update" | "/key/{key_id}/reset_spend" | "/key/access_group_assignment" | "/auto_router/manage" | "/key/info" | "/key/health" | "/key/list" | "/key/aliases" | "/team/daily/activity" | "/team/daily/activity/aggregated" | "/spend/logs" | "/spend/logs/v2";
|
||||
/**
|
||||
* KeyManagementSystem
|
||||
* @enum {string}
|
||||
|
|
@ -34273,13 +34273,13 @@ export interface components {
|
|||
classifier_context_budget_chars: number;
|
||||
/**
|
||||
* Classifier Context Include Assistant Turns
|
||||
* @description Include assistant turns in the classifier context window, so difficulty stated by the model rather than by the user stays visible: a plan the assistant calls complex, which the user approves with 'yes', is classified on the work being approved instead of on the word 'yes'. When enabled, classifier_context_window_size counts the last N turns of the conversation across both roles rather than the last N user turns, and assistant text is sent to the classifier model, which may be a different deployment or provider than the routed completion model. Assistant replies spend classifier_context_budget_chars alongside user turns, so raise it if the oldest turns stop being quoted once replies join the window. Off by default because enabling it shifts tier decisions, and therefore spend, for an already-deployed router. Applies to LLM and JEV classification.
|
||||
* @description Include assistant turns in the classifier context window, so difficulty stated by the model rather than by the user stays visible: a plan the assistant calls complex, which the user approves with 'yes', is classified on the work being approved instead of on the word 'yes'. When enabled, classifier_context_window_size counts the last N turns of the conversation across both roles rather than the last N user turns, and assistant text is sent to the classifier model, which may be a different deployment or provider than the routed completion model. Assistant replies spend classifier_context_budget_chars alongside user turns, so raise it if the oldest turns stop being quoted once replies join the window. Off by default because enabling it shifts tier decisions, and therefore spend, for an already-deployed router. Only applies when classifier_type is 'llm'.
|
||||
* @default false
|
||||
*/
|
||||
classifier_context_include_assistant_turns: boolean;
|
||||
/**
|
||||
* Classifier Context Per Turn Chars
|
||||
* @description Optional cap on each individual prior turn's text, applied before classifier_context_budget_chars bounds the block. Unset by default, so one long turn may spend the whole budget, which is usually what a follow-up needs; set it when no single turn should dominate the context the classifier sees. A capped turn keeps its opening and its ending with the middle elided. Applies to LLM and JEV classification.
|
||||
* @description Optional cap on each individual prior turn's text, applied before classifier_context_budget_chars bounds the block. Unset by default, so one long turn may spend the whole budget, which is usually what a follow-up needs; set it when no single turn should dominate the context the classifier sees. A capped turn keeps its opening and its ending with the middle elided. Only applies when classifier_type is 'llm'.
|
||||
*/
|
||||
classifier_context_per_turn_chars?: number | null;
|
||||
/**
|
||||
|
|
@ -34310,21 +34310,17 @@ export interface components {
|
|||
classifier_plugin_timeout_ms: number;
|
||||
/**
|
||||
* Classifier Type
|
||||
* @description Classification strategy: local regex/keyword scoring, an LLM call, a custom classifier plugin, or 'heuristic_first', which scores locally and only pays for the LLM classifier when the local scorer does not confidently land a cheap tier
|
||||
* @description Classification strategy: local regex/keyword scoring, the bundled trained four-tier heuristic, an LLM tier-selection call, a Switchyard-compatible capability forecast, a joint Fuse V2 forecast, a custom classifier plugin, 'heuristic_first', which scores locally and only pays for the LLM classifier when the local scorer does not confidently land a cheap tier, or 'hybrid', which trusts the local scorer everywhere except when its score lands near a tier boundary, or 'jev', a TypeSafe AI Jev structured choice call
|
||||
* @description Classification strategy: local regex/keyword scoring, an LLM call, a custom classifier plugin, or 'heuristic_first', which scores locally and only pays for the LLM classifier when the local scorer does not confidently land a cheap tier, or 'jev', a TypeSafe AI Jev structured choice call
|
||||
* @default heuristic
|
||||
* @enum {string}
|
||||
*/
|
||||
classifier_type: "heuristic" | "llm" | "custom" | "heuristic_first";
|
||||
classifier_type: "heuristic" | "heuristic_v2" | "llm" | "capability" | "llm_v2" | "custom" | "heuristic_first" | "hybrid" | "jev";
|
||||
classifier_type: "heuristic" | "llm" | "custom" | "heuristic_first" | "jev";
|
||||
/**
|
||||
* @description Add NON_REASONING as a fifth built-in tier below SIMPLE, for operational agent traffic that relays or reformats information rather than reasoning about it. Off by default: turning it on adds a rung to this router's ladder, a bullet to the LLM classifier's rubric, and a value the classifier may return, all of which move tier decisions and spend on an already-deployed router. Requires an LLM, Jev, or custom classifier plugin, since the heuristic scorers cannot produce the tier, and a model in `tiers` under the NON_REASONING key. Escalation still walks up from it, and it is never the savings baseline or a `heuristic_v2` prediction.
|
||||
* Code Keywords
|
||||
* @description Keywords indicating code-related content
|
||||
*/
|
||||
code_keywords?: string[] | null;
|
||||
/**
|
||||
jev_classifier_config?: components["schemas"]["JevClassifierConfig"] | null;
|
||||
* Custom Technical Keywords
|
||||
* @description Domain-specific technical keywords appended to the effective base list (technical_keywords if set, otherwise DEFAULT_TECHNICAL_KEYWORDS). Order is preserved; duplicates are removed case-insensitively against the base list and within this list.
|
||||
*/
|
||||
|
|
@ -34372,6 +34368,7 @@ export interface components {
|
|||
* @description Additional case-sensitive literal sentinels that mark a request as client housekeeping, on top of the built-in conversation-title ones. For clients whose wording the built-ins don't cover, or after a client release changes its strings.
|
||||
*/
|
||||
housekeeping_patterns?: string[] | null;
|
||||
jev_classifier_config?: components["schemas"]["JevClassifierConfig"] | null;
|
||||
/**
|
||||
* Keyword Tier Rules
|
||||
* @description Rules that force a specific tier when their keywords match the prompt
|
||||
|
|
@ -35536,8 +35533,7 @@ export interface components {
|
|||
* Cause
|
||||
* @enum {string}
|
||||
*/
|
||||
cause?: "heuristic_scorer" | "reasoning_override" | "llm_classifier" | "heuristic_first_short_circuit" | "classifier_plugin" | "classifier_fallback" | "default_model_fallback" | "literal_keyword_match" | "semantic_keyword_match" | "plan_mode" | "housekeeping" | "session_affinity_pin" | "session_affinity_escalation" | "default_fallback" | "keyword" | "quality_tier" | "bandit";
|
||||
cause?: "heuristic_scorer" | "heuristic_v2" | "reasoning_override" | "llm_classifier" | "capability_classifier" | "jev_classifier" | "llm_v2_classifier" | "llm_v2_fallback" | "heuristic_first_short_circuit" | "hybrid_short_circuit" | "classifier_plugin" | "classifier_fallback" | "capability_classifier_fallback" | "default_model_fallback" | "literal_keyword_match" | "semantic_keyword_match" | "plan_mode" | "housekeeping" | "modality_escalation" | "modality_pin_override" | "health_failover" | "health_default_fallback" | "session_affinity_pin" | "session_affinity_escalation" | "user_turn_continuation" | "default_fallback" | "keyword" | "quality_tier" | "bandit";
|
||||
cause?: "heuristic_scorer" | "reasoning_override" | "llm_classifier" | "jev_classifier" | "heuristic_first_short_circuit" | "classifier_plugin" | "classifier_fallback" | "default_model_fallback" | "literal_keyword_match" | "semantic_keyword_match" | "plan_mode" | "housekeeping" | "session_affinity_pin" | "session_affinity_escalation" | "default_fallback" | "keyword" | "quality_tier" | "bandit";
|
||||
/** Classifier Confidence */
|
||||
classifier_confidence?: number;
|
||||
/** Classifier Cost */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue