We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc76021 commit a4edc95Copy full SHA for a4edc95
src/openai/types/completion_usage.py
@@ -36,6 +36,12 @@ class PromptTokensDetails(BaseModel):
36
cached_tokens: Optional[int] = None
37
"""Cached tokens present in the prompt."""
38
39
+ image_tokens: Optional[int] = None
40
+ """Image input tokens present in the prompt."""
41
+
42
+ text_tokens: Optional[int] = None
43
+ """Text input tokens present in the prompt."""
44
45
46
class CompletionUsage(BaseModel):
47
completion_tokens: int
0 commit comments