Skip to content

Commit da4b461

Browse files
author
stlc-bot
committed
fix(openapi): document request_id and key_metadata on every response in one place (#2042)
Stainless-Generated-From: 259f0a00ce1c81e9215bc4061b0d1bdc2909e1d5
1 parent 3d35c31 commit da4b461

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎src/context/dev/types/batch_cancel_response.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Timing(BaseModel):
7575

7676

7777
class KeyMetadata(BaseModel):
78-
"""API key usage for this request."""
78+
"""Credits this request used and your remaining balance."""
7979

8080
credits_consumed: int
8181
"""Credits charged for this request."""
@@ -128,4 +128,4 @@ class BatchCancelResponse(BaseModel):
128128
"""Batch timestamps."""
129129

130130
key_metadata: Optional[KeyMetadata] = None
131-
"""API key usage for this request."""
131+
"""Credits this request used and your remaining balance."""

‎src/context/dev/types/batch_retrieve_response.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class Timing(BaseModel):
131131

132132

133133
class KeyMetadata(BaseModel):
134-
"""API key usage for this request."""
134+
"""Credits this request used and your remaining balance."""
135135

136136
credits_consumed: int
137137
"""Credits charged for this request."""
@@ -198,7 +198,7 @@ class BatchRetrieveResponse(BaseModel):
198198
timing: Timing
199199

200200
key_metadata: Optional[KeyMetadata] = None
201-
"""API key usage for this request."""
201+
"""Credits this request used and your remaining balance."""
202202

203203
webhook_delivery_id: Optional[str] = None
204204
"""Batch completion delivery ID, when available."""

‎src/context/dev/types/batch_submit_response.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class InvalidURL(BaseModel):
7272

7373

7474
class KeyMetadata(BaseModel):
75-
"""API key usage for this request."""
75+
"""Credits this request used and your remaining balance."""
7676

7777
credits_consumed: int
7878
"""Credits charged for this request."""
@@ -122,7 +122,7 @@ class BatchSubmitResponse(BaseModel):
122122
"""Tags stored on the batch."""
123123

124124
key_metadata: Optional[KeyMetadata] = None
125-
"""API key usage for this request."""
125+
"""Credits this request used and your remaining balance."""
126126

127127
webhook_secret: Optional[str] = None
128128
"""Secret for verifying `X-Context-Signature`.

‎uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)