We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26422ab commit e42f7b1Copy full SHA for e42f7b1
1 file changed
sentry_sdk/integrations/openai.py
@@ -229,7 +229,7 @@ def _calculate_streaming_responses_token_usage(
229
span: "Span",
230
streaming_message_responses: "Optional[List[str]]",
231
count_tokens: "Callable[..., Any]",
232
-):
+) -> None:
233
"""
234
Sets token attribute for streaming Responses calls.
235
Sets token usage if available in the response object, or computes the usage for textual input and output with tiktoken.
0 commit comments