Skip to content

Commit d12cc7b

Browse files
chore: sync from ark-apis edc22ff1fa
Auto-generated SDK sync from ark-apis at edc22ff1fac0391e38c3707e3406e5d9af05936f. Generated files are overwritten by the sync pipeline and should not be edited by hand. Sync-Source-Commit: f6d2df48d5167b36fc03fc40f6d4d80d919c8f2a Ark-APIs-Commit: edc22ff1fac0391e38c3707e3406e5d9af05936f Release-Version: 0.24.0
1 parent ac4bf0c commit d12cc7b

6 files changed

Lines changed: 35 additions & 3 deletions

File tree

‎VERSION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.23.0
1+
0.24.0

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "arkruntime"
7-
version = "0.23.0"
7+
version = "0.24.0"
88
description = "Ark runtime SDK for Python"
99
readme = "README.md"
1010
requires-python = ">=3.8"

‎src/arkruntime/types/content_generation/__init__.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from .audio_role import AudioRole
1010
from .audio_url import AudioURL
11+
from .completion_tokens_details import CompletionTokensDetails
1112
from .content_generation_task import ContentGenerationTask
1213
from .content_item import ContentItem
1314
from .content_type import ContentType
@@ -33,6 +34,7 @@
3334
__all__ = [
3435
"AudioRole",
3536
"AudioURL",
37+
"CompletionTokensDetails",
3638
"ContentGenerationTask",
3739
"ContentItem",
3840
"ContentType",
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Generated by datamodel-code-generator from ark-apis typespec/openapi.
2+
# DO NOT EDIT — regenerate with `make gen-py-<api>` in ark-apis.
3+
#
4+
# Copyright (c) 2026 ByteDance Ltd. and/or its affiliates.
5+
# SPDX-License-Identifier: Apache-2.0
6+
7+
from __future__ import annotations
8+
9+
from arkruntime._models import BaseModel
10+
11+
12+
class CompletionTokensDetails(BaseModel):
13+
"""
14+
Breakdown of the completion tokens of a 3D generation task.
15+
"""
16+
17+
geometry_tokens: int
18+
"""
19+
Tokens consumed by geometry generation; 0 when the task has none.
20+
"""
21+
texture_tokens: int
22+
"""
23+
Tokens consumed by texture generation; 0 when the task has none.
24+
"""

‎src/arkruntime/types/content_generation/task_usage.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
from arkruntime._models import BaseModel
1212

13+
from .completion_tokens_details import CompletionTokensDetails
1314
from .tool_usage import ToolUsage
1415

1516

@@ -18,6 +19,11 @@ class TaskUsage(BaseModel):
1819
"""
1920
Tokens consumed by the completion.
2021
"""
22+
completion_tokens_details: Optional[CompletionTokensDetails] = None
23+
"""
24+
Geometry / texture breakdown of `completion_tokens`, returned by 3D
25+
generation tasks. The two parts add up to `completion_tokens`.
26+
"""
2127
total_tokens: int
2228
"""
2329
Total tokens consumed by the request.

‎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)