You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
"description": "Represents the different types of providers we support."
@@ -1505,25 +1506,51 @@
1505
1506
"title": "QuestionType"
1506
1507
},
1507
1508
"TokenUsage": {
1509
+
"properties": {
1510
+
"input_tokens": {
1511
+
"type": "integer",
1512
+
"title": "Input Tokens",
1513
+
"default": 0
1514
+
},
1515
+
"output_tokens": {
1516
+
"type": "integer",
1517
+
"title": "Output Tokens",
1518
+
"default": 0
1519
+
},
1520
+
"input_cost": {
1521
+
"type": "number",
1522
+
"title": "Input Cost",
1523
+
"default": 0
1524
+
},
1525
+
"output_cost": {
1526
+
"type": "number",
1527
+
"title": "Output Cost",
1528
+
"default": 0
1529
+
}
1530
+
},
1531
+
"type": "object",
1532
+
"title": "TokenUsage",
1533
+
"description": "TokenUsage it's not a table, it's a model to represent the token usage.\nThe data is stored in the outputs table."
1534
+
},
1535
+
"TokenUsageAggregate": {
1508
1536
"properties": {
1509
1537
"tokens_by_model": {
1510
-
"items": {
1538
+
"additionalProperties": {
1511
1539
"$ref": "#/components/schemas/TokenUsageByModel"
1512
1540
},
1513
-
"type": "array",
1541
+
"type": "object",
1514
1542
"title": "Tokens By Model"
1515
1543
},
1516
-
"used_tokens": {
1517
-
"type": "integer",
1518
-
"title": "Used Tokens"
1544
+
"token_usage": {
1545
+
"$ref": "#/components/schemas/TokenUsage"
1519
1546
}
1520
1547
},
1521
1548
"type": "object",
1522
1549
"required": [
1523
1550
"tokens_by_model",
1524
-
"used_tokens"
1551
+
"token_usage"
1525
1552
],
1526
-
"title": "TokenUsage",
1553
+
"title": "TokenUsageAggregate",
1527
1554
"description": "Represents the tokens used. Includes the information of the tokens used by model.\n`used_tokens` are the total tokens used in the `tokens_by_model` list."
1528
1555
},
1529
1556
"TokenUsageByModel": {
@@ -1535,16 +1562,15 @@
1535
1562
"type": "string",
1536
1563
"title": "Model"
1537
1564
},
1538
-
"used_tokens": {
1539
-
"type": "integer",
1540
-
"title": "Used Tokens"
1565
+
"token_usage": {
1566
+
"$ref": "#/components/schemas/TokenUsage"
1541
1567
}
1542
1568
},
1543
1569
"type": "object",
1544
1570
"required": [
1545
1571
"provider_type",
1546
1572
"model",
1547
-
"used_tokens"
1573
+
"token_usage"
1548
1574
],
1549
1575
"title": "TokenUsageByModel",
1550
1576
"description": "Represents the tokens used by a model."
0 commit comments