| 1 |
from .._models import BaseModel |
| 2 |
|
| 3 |
__all__ = ["OutputTokensDetails"] |
| 4 |
|
| 5 |
|
| 6 |
class OutputTokensDetails(BaseModel): |
| 7 |
thinking_tokens: int |
| 8 |
""" |
| 9 |
Number of output tokens the model generated as internal reasoning, including the |
| 10 |
thinking-block delimiter tokens. |
| 11 |
|
| 12 |
Reflects the raw reasoning the model produced, not the (possibly shorter) |
| 13 |
summarized thinking text returned in the response body. Computed by |
| 14 |
re-tokenizing the raw reasoning text, so it may differ from the model's exact |
| 15 |
generation count by a small number of tokens. Always ≤ `output_tokens`; |
| 16 |
`output_tokens - thinking_tokens` approximates the non-reasoning output. |
| 17 |
""" |