Skip to content

Commit de18327

Browse files
docs: update openapi
1 parent 014be68 commit de18327

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Diff for: public/v1/components/headers.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,11 @@ components:
1717
description: The number of seconds until the limit is reset.
1818
schema:
1919
type: integer
20+
CreditsCost:
21+
description: Then number of credits consumed by the request. Shown only when credits are involved.
22+
schema:
23+
type: integer
24+
CreditsRemaining:
25+
description: The number of remaining credits for that user. Shown only when credits are involved.
26+
schema:
27+
type: integer

Diff for: public/v1/components/responses.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ components:
117117
$ref: 'headers.yaml#/components/headers/RateLimitRemaining'
118118
X-RateLimit-Reset:
119119
$ref: 'headers.yaml#/components/headers/RateLimitReset'
120+
X-Credits-Cost:
121+
$ref: 'headers.yaml#/components/headers/CreditsCost'
122+
X-Credits-Remaining:
123+
$ref: 'headers.yaml#/components/headers/CreditsRemaining'
120124
content:
121125
application/json:
122126
schema:

0 commit comments

Comments
 (0)