diff --git a/autogpt_platform/frontend/src/app/(platform)/admin/platform-costs/components/PlatformCostContent.tsx b/autogpt_platform/frontend/src/app/(platform)/admin/platform-costs/components/PlatformCostContent.tsx
index d8fdded738..f282399eae 100644
--- a/autogpt_platform/frontend/src/app/(platform)/admin/platform-costs/components/PlatformCostContent.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/admin/platform-costs/components/PlatformCostContent.tsx
@@ -298,21 +298,19 @@ export function PlatformCostContent({ searchParams }: Props) {
Cost Distribution by Bucket
- {dashboard.cost_buckets.map(
- (b: CostBucket) => (
-
-
- {b.bucket}
-
-
- {b.count.toLocaleString()}
-
-
- ),
- )}
+ {dashboard.cost_buckets.map((b: CostBucket) => (
+
+
+ {b.bucket}
+
+
+ {b.count.toLocaleString()}
+
+
+ ))}
)}
diff --git a/autogpt_platform/frontend/src/app/api/openapi.json b/autogpt_platform/frontend/src/app/api/openapi.json
index ca9eee94d6..1144575931 100644
--- a/autogpt_platform/frontend/src/app/api/openapi.json
+++ b/autogpt_platform/frontend/src/app/api/openapi.json
@@ -12142,16 +12142,64 @@
},
"total_requests": { "type": "integer", "title": "Total Requests" },
"total_users": { "type": "integer", "title": "Total Users" },
- "total_input_tokens": { "type": "integer", "title": "Total Input Tokens", "default": 0 },
- "total_output_tokens": { "type": "integer", "title": "Total Output Tokens", "default": 0 },
- "avg_input_tokens_per_request": { "type": "number", "title": "Avg Input Tokens Per Request", "default": 0.0 },
- "avg_output_tokens_per_request": { "type": "number", "title": "Avg Output Tokens Per Request", "default": 0.0 },
- "avg_cost_microdollars_per_request": { "type": "number", "title": "Avg Cost Microdollars Per Request", "default": 0.0 },
- "cost_p50_microdollars": { "type": "number", "title": "Cost P50 Microdollars", "default": 0.0 },
- "cost_p75_microdollars": { "type": "number", "title": "Cost P75 Microdollars", "default": 0.0 },
- "cost_p95_microdollars": { "type": "number", "title": "Cost P95 Microdollars", "default": 0.0 },
- "cost_p99_microdollars": { "type": "number", "title": "Cost P99 Microdollars", "default": 0.0 },
- "cost_buckets": { "type": "array", "items": { "type": "object", "properties": { "bucket": { "type": "string" }, "count": { "type": "integer" } }, "required": ["bucket", "count"] }, "title": "Cost Buckets", "default": [] }
+ "total_input_tokens": {
+ "type": "integer",
+ "title": "Total Input Tokens",
+ "default": 0
+ },
+ "total_output_tokens": {
+ "type": "integer",
+ "title": "Total Output Tokens",
+ "default": 0
+ },
+ "avg_input_tokens_per_request": {
+ "type": "number",
+ "title": "Avg Input Tokens Per Request",
+ "default": 0.0
+ },
+ "avg_output_tokens_per_request": {
+ "type": "number",
+ "title": "Avg Output Tokens Per Request",
+ "default": 0.0
+ },
+ "avg_cost_microdollars_per_request": {
+ "type": "number",
+ "title": "Avg Cost Microdollars Per Request",
+ "default": 0.0
+ },
+ "cost_p50_microdollars": {
+ "type": "number",
+ "title": "Cost P50 Microdollars",
+ "default": 0.0
+ },
+ "cost_p75_microdollars": {
+ "type": "number",
+ "title": "Cost P75 Microdollars",
+ "default": 0.0
+ },
+ "cost_p95_microdollars": {
+ "type": "number",
+ "title": "Cost P95 Microdollars",
+ "default": 0.0
+ },
+ "cost_p99_microdollars": {
+ "type": "number",
+ "title": "Cost P99 Microdollars",
+ "default": 0.0
+ },
+ "cost_buckets": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "bucket": { "type": "string" },
+ "count": { "type": "integer" }
+ },
+ "required": ["bucket", "count"]
+ },
+ "title": "Cost Buckets",
+ "default": []
+ }
},
"type": "object",
"required": [
@@ -15586,7 +15634,11 @@
"title": "Total Output Tokens"
},
"request_count": { "type": "integer", "title": "Request Count" },
- "cost_bearing_request_count": { "type": "integer", "title": "Cost Bearing Request Count", "default": 0 }
+ "cost_bearing_request_count": {
+ "type": "integer",
+ "title": "Cost Bearing Request Count",
+ "default": 0
+ }
},
"type": "object",
"required": [