Visitar URL original
feat(api): api update · unlayer/unlayer-python@c0333b6 · GitHub
Skip to content

Commit c0333b6

Browse files
feat(api): api update
1 parent cd35d3b commit c0333b6

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 51
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/unlayer/unlayer-92f6b863c3ee96cd2d4dd5b6a38d2820b0a56bf1006a0429a3d6fb756530d781.yml
3-
openapi_spec_hash: 204d0db45842998a761ec507960eae9f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/unlayer/unlayer-268cac778fb55e8dafe406262f0ead04728e2bafb672ca60161f985f942cf4f8.yml
3+
openapi_spec_hash: e5ac63432486a66a5b5e101151bd95f4
44
config_hash: 31bbe4c50af7bd9aea5582d9a2ab786d

‎src/unlayer/resources/projects/ai_credits_usage.py‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ def retrieve(
7070
) -> AICreditsUsageRetrieveResponse:
7171
"""
7272
Returns AI credit consumption for the project, broken down by end user and
73-
feature type. Filterable by date range, end user, and feature type. Defaults to
74-
the current billing period. Only credit counts are returned; token counts, model
73+
feature type. Filterable by date range, end user, and feature type. Usage is
74+
updated near real time and grouped by the UTC date when the AI activity
75+
occurred. Recent activity may take a short time to appear. Defaults to the
76+
current billing period. Only credit counts are returned; token counts, model
7577
names, and costs are never exposed. Per-end-user attribution requires the
7678
partner to pass `endUserId` on editor initialization.
7779
@@ -174,8 +176,10 @@ async def retrieve(
174176
) -> AICreditsUsageRetrieveResponse:
175177
"""
176178
Returns AI credit consumption for the project, broken down by end user and
177-
feature type. Filterable by date range, end user, and feature type. Defaults to
178-
the current billing period. Only credit counts are returned; token counts, model
179+
feature type. Filterable by date range, end user, and feature type. Usage is
180+
updated near real time and grouped by the UTC date when the AI activity
181+
occurred. Recent activity may take a short time to appear. Defaults to the
182+
current billing period. Only credit counts are returned; token counts, model
179183
names, and costs are never exposed. Per-end-user attribution requires the
180184
partner to pass `endUserId` on editor initialization.
181185

0 commit comments

Comments
 (0)