Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions posthog/test/ai/openai/test_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ def test_responses_cache_write_tokens(
if stream:
list(result)

props = mock_client.capture.call_args[1]["properties"]
props = mock_client.capture_ai.call_args[1]["properties"]
assert props["$ai_input_tokens"] == 100
assert props["$ai_cache_read_input_tokens"] == 20
assert props["$ai_cache_creation_input_tokens"] == 50
Expand Down Expand Up @@ -721,7 +721,7 @@ def test_chat_cache_write_tokens(mock_client, mock_openai_response, stream):
if stream:
list(result)

props = mock_client.capture.call_args[1]["properties"]
props = mock_client.capture_ai.call_args[1]["properties"]
assert props["$ai_input_tokens"] == 100
assert props["$ai_cache_read_input_tokens"] == 20
assert props["$ai_cache_creation_input_tokens"] == 50
Expand Down
Loading