Skip to content

Commit f3b01bd

Browse files
committed
fix: format
1 parent b3e55bf commit f3b01bd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

posthog/test/ai/anthropic/test_anthropic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ async def test_async_streaming_system_prompt(mock_client, mock_anthropic_stream)
325325
{"role": "user", "content": "Foo"},
326326
]
327327

328+
328329
def test_core_model_params(mock_client, mock_anthropic_response):
329330
with patch("anthropic.resources.Messages.create", return_value=mock_anthropic_response):
330331
client = Anthropic(api_key="test-key", posthog_client=mock_client)
@@ -344,4 +345,4 @@ def test_core_model_params(mock_client, mock_anthropic_response):
344345
assert props["$ai_temperature"] == 0.5
345346
assert props["$ai_max_tokens"] == 100
346347
assert props["$ai_stream"] == False
347-
assert props["foo"] == "bar"
348+
assert props["foo"] == "bar"

posthog/test/ai/openai/test_openai.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ def test_privacy_mode_global(mock_client, mock_openai_response):
174174
assert props["$ai_input"] is None
175175
assert props["$ai_output_choices"] is None
176176

177+
177178
def test_core_model_params(mock_client, mock_openai_response):
178179
with patch("openai.resources.chat.completions.Completions.create", return_value=mock_openai_response):
179180
client = OpenAI(api_key="test-key", posthog_client=mock_client)
@@ -196,4 +197,4 @@ def test_core_model_params(mock_client, mock_openai_response):
196197
assert props["$ai_temperature"] == 0.5
197198
assert props["$ai_max_tokens"] == 100
198199
assert props["$ai_stream"] == False
199-
assert props["foo"] == "bar"
200+
assert props["foo"] == "bar"

0 commit comments

Comments
 (0)