@acarmisc/backstage-plugin-litellm 0.8.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +3 -1
- package/dist/components/KeysTable.d.ts +3 -1
- package/dist/format.d.ts +5 -0
- package/dist/index.cjs.js +241 -38
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.esm.js +259 -50
- package/dist/index.esm.js.map +4 -4
- package/dist/types.d.ts +12 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -47,6 +47,8 @@ export interface ModelInfo {
|
|
|
47
47
|
supports_vision?: boolean;
|
|
48
48
|
input_cost_per_token?: number;
|
|
49
49
|
output_cost_per_token?: number;
|
|
50
|
+
max_input_tokens?: number;
|
|
51
|
+
max_output_tokens?: number;
|
|
50
52
|
}
|
|
51
53
|
export interface UsageModelBreakdown {
|
|
52
54
|
total_spend: number;
|
|
@@ -108,10 +110,15 @@ export interface GenerateKeyRequest {
|
|
|
108
110
|
models?: string[];
|
|
109
111
|
team_id?: string;
|
|
110
112
|
duration?: string;
|
|
111
|
-
|
|
113
|
+
/** Positive number caps spend; null/undefined means unlimited. */
|
|
114
|
+
max_budget?: number | null;
|
|
112
115
|
tpm_limit?: number;
|
|
113
116
|
rpm_limit?: number;
|
|
114
117
|
key_type?: string;
|
|
118
|
+
/** When true, LiteLLM rotates the key on a schedule. */
|
|
119
|
+
auto_rotate?: boolean;
|
|
120
|
+
/** Rotation interval in days (LiteLLM-enforced when auto_rotate is true). */
|
|
121
|
+
rotation_interval_days?: number;
|
|
115
122
|
}
|
|
116
123
|
export interface UpdateKeyRequest {
|
|
117
124
|
key_alias?: string;
|
|
@@ -128,6 +135,10 @@ export interface GenerateKeyResponse {
|
|
|
128
135
|
expires_at?: string;
|
|
129
136
|
max_budget?: number;
|
|
130
137
|
}
|
|
138
|
+
export interface LiteLlmConfig {
|
|
139
|
+
/** Publicly reachable LiteLLM proxy base URL (for snippet generation). */
|
|
140
|
+
baseUrl: string;
|
|
141
|
+
}
|
|
131
142
|
export interface DateRange {
|
|
132
143
|
start: Date;
|
|
133
144
|
end: Date;
|