@acarmisc/backstage-plugin-litellm 0.36.0 → 0.38.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.
@@ -0,0 +1,8 @@
1
+ import type { InsightSummary, ModelInfo, ModelOpportunity, PracticeScore, UsageMetrics } from './types';
2
+ export declare const summarizeUsage: (usage: UsageMetrics | null, models?: ModelInfo[], premiumThresholdPer1k?: number) => InsightSummary;
3
+ export declare const scorePractices: (summary: InsightSummary, keyStats: {
4
+ idleKeys: number;
5
+ uncappedKeys: number;
6
+ totalKeys: number;
7
+ }) => PracticeScore;
8
+ export declare const modelOpportunities: (usage: UsageMetrics | null, models?: ModelInfo[], premiumThresholdPer1k?: number) => ModelOpportunity[];
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { type UserInfo, type TeamMember, type TeamObjectPermission, type TeamInfo, type VirtualKey, type ModelInfo, type UsageModelBreakdown, type UsageKeyBreakdown, type UsageDailyPoint, type UsageDailyModelPoint, type UsageMetrics, type TeamMemberUsage, type TeamMemberUsageRow, type GenerateKeyRequest, type UpdateKeyRequest, type GenerateKeyResponse, type AuditLogEntry, type PaginatedAuditLogs, type AuditLogsParams, type CreateTeamResponse, } from '@acarmisc/backstage-plugin-litellm-common';
1
+ export { type UserInfo, type TeamMember, type TeamObjectPermission, type TeamInfo, type VirtualKey, type ModelInfo, type UsageModelBreakdown, type UsageKeyBreakdown, type UsageDailyPoint, type UsageDailyModelPoint, type UsageMetrics, type TeamMemberUsage, type TeamMemberUsageRow, type GenerateKeyRequest, type UpdateKeyRequest, type GenerateKeyResponse, type AuditLogEntry, type PaginatedAuditLogs, type AuditLogsParams, type SpendLogEntry, type SpendLogsParams, type PaginatedSpendLogs, type CreateTeamResponse, type InsightSummary, type PracticeScore, type ModelOpportunity, } from '@acarmisc/backstage-plugin-litellm-common';
2
2
  export interface VectorStoreInfo {
3
3
  id: string;
4
4
  name?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acarmisc/backstage-plugin-litellm",
3
- "version": "0.36.0",
3
+ "version": "0.38.0",
4
4
  "backstage": {
5
5
  "role": "frontend-plugin",
6
6
  "pluginId": "litellm",
@@ -41,7 +41,7 @@
41
41
  "prepack": "npm run build"
42
42
  },
43
43
  "dependencies": {
44
- "@acarmisc/backstage-plugin-litellm-common": "0.2.0",
44
+ "@acarmisc/backstage-plugin-litellm-common": "0.3.0",
45
45
  "@backstage/catalog-model": "^1.9.0",
46
46
  "@backstage/core-components": "^0.18.10",
47
47
  "@backstage/core-plugin-api": "^1.12.6",