Skip to content

Commit 665a321

Browse files
Merge pull request #445 from aimlapi/agent/fix-usage-spec-description
Add the required response description to the usage OpenAPI specs
2 parents 3bdabfd + 46e5e67 commit 665a321

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

docs/api-references/service-endpoints/usage-detail-v2.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
],
5858
"responses": {
5959
"200": {
60+
"description": "Total spend for the key over the requested window, with a per-model breakdown.",
6061
"content": {
6162
"application/json": {
6263
"schema": {
@@ -115,7 +116,11 @@
115116
"example": 500
116117
}
117118
},
118-
"required": ["model", "spend", "requests"]
119+
"required": [
120+
"model",
121+
"spend",
122+
"requests"
123+
]
119124
}
120125
}
121126
},

docs/api-references/service-endpoints/usage-v2.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
],
5858
"responses": {
5959
"200": {
60+
"description": "Total spend for the key over the requested window.",
6061
"content": {
6162
"application/json": {
6263
"schema": {

0 commit comments

Comments
 (0)