Enter to send·Shift+Enter new line
PromptTokenDetails()
BaseModel
Recursively generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
Generates a JSON string representing this model as it would be received from or sent to the API (but with indentation).
Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump
Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump_json
prompt_token_details is the prompt-side token breakdown by category; per-category counts are under nested raw. Omitted unless included in selects.
prompt_token_details
raw
selects
raw maps each category name to its prompt-token count.