posthog 6.7.6__py3-none-any.whl → 6.7.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -128,7 +128,7 @@ class WrappedResponses:
128
128
  start_time = time.time()
129
129
  usage_stats: TokenUsage = TokenUsage()
130
130
  final_content = []
131
- response = self._original.create(**kwargs)
131
+ response = await self._original.create(**kwargs)
132
132
 
133
133
  async def async_generator():
134
134
  nonlocal usage_stats
@@ -345,7 +345,7 @@ class WrappedCompletions:
345
345
  if "stream_options" not in kwargs:
346
346
  kwargs["stream_options"] = {}
347
347
  kwargs["stream_options"]["include_usage"] = True
348
- response = self._original.create(**kwargs)
348
+ response = await self._original.create(**kwargs)
349
349
 
350
350
  async def async_generator():
351
351
  nonlocal usage_stats
@@ -499,7 +499,7 @@ class WrappedEmbeddings:
499
499
  posthog_trace_id = str(uuid.uuid4())
500
500
 
501
501
  start_time = time.time()
502
- response = self._original.create(**kwargs)
502
+ response = await self._original.create(**kwargs)
503
503
  end_time = time.time()
504
504
 
505
505
  # Extract usage statistics if available
posthog/client.py CHANGED
@@ -973,7 +973,6 @@ class Client(object):
973
973
  "value"
974
974
  ),
975
975
  "$exception_list": all_exceptions_with_trace_and_in_app,
976
- "$exception_personURL": f"{remove_trailing_slash(self.raw_host)}/project/{self.api_key}/person/{distinct_id}",
977
976
  **properties,
978
977
  }
979
978
 
posthog/version.py CHANGED
@@ -1,4 +1,4 @@
1
- VERSION = "6.7.6"
1
+ VERSION = "6.7.8"
2
2
 
3
3
  if __name__ == "__main__":
4
4
  print(VERSION, end="") # noqa: T201
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: posthog
3
- Version: 6.7.6
3
+ Version: 6.7.8
4
4
  Summary: Integrate PostHog into any python application.
5
5
  Home-page: https://github.com/posthog/posthog-python
6
6
  Author: Posthog
@@ -1,6 +1,6 @@
1
1
  posthog/__init__.py,sha256=IQ-522ve1cw6pMIQ1DNiQkRPktx0gVTvJTTBH8hokCA,25762
2
2
  posthog/args.py,sha256=JUt0vbtF33IzLt3ARgsxMEYYnZo3RNS_LcK4-CjWaco,3298
3
- posthog/client.py,sha256=C2vw7jsIVqov-lwOobVrjGuuW6dZmhVIX7ZfxkbOut4,72680
3
+ posthog/client.py,sha256=r4uITrHRivmcle0_sN9T84ZqpxrxTSn9xL_0o-W2HSs,72553
4
4
  posthog/consumer.py,sha256=fdteMZ-deJGMpaQmHyznw_cwQG2Vvld1tmN9LUkZPrY,4608
5
5
  posthog/contexts.py,sha256=FWdM84ibI7jJEKpNGVnjTXi7PWBQRpDUjLOuFkLxFYI,9387
6
6
  posthog/exception_capture.py,sha256=pmKtjQ6QY6zs4u_-ZA4H1gCyR3iI4sfqCQG_jwe_bKo,1774
@@ -11,7 +11,7 @@ posthog/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  posthog/request.py,sha256=CaONBN7a5RD8xiSShVMgHEd9XxKWM6ZQTLZypiqABhA,6168
12
12
  posthog/types.py,sha256=Dl3aFGX9XUR0wMmK12r2s5Hjan9jL4HpQ9GHpVcEq5U,10207
13
13
  posthog/utils.py,sha256=-0w-OLcCaoldkbBebPzQyBzLJSo9G9yBOg8NDVz7La8,16088
14
- posthog/version.py,sha256=ugiK6MZjVnC7xaQRiFY_ZQ1afbQILvn45RjDa3shE3o,87
14
+ posthog/version.py,sha256=4iDNXV-2xOCt5RDshhzgyNrqpcL_RSoP8Uvd1yWariU,87
15
15
  posthog/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  posthog/ai/sanitization.py,sha256=owipZ4eJYtd4JTI-CM_klatclXaeaIec3XJBOUfsOnQ,5770
17
17
  posthog/ai/types.py,sha256=ceubs4K9xf8vQx7wokq1NL9hPtxyS7D7sUOuT7Lx1lM,3237
@@ -28,7 +28,7 @@ posthog/ai/langchain/__init__.py,sha256=9CqAwLynTGj3ASAR80C3PmdTdrYGmu99tz0JL-HP
28
28
  posthog/ai/langchain/callbacks.py,sha256=vkcOUch82N6BJPDTZTmTHVrRu0ZpLdFZqgt_LEqwGPg,29491
29
29
  posthog/ai/openai/__init__.py,sha256=u4OuUT7k1NgFj0TrxjuyegOg7a_UA8nAU6a-Hszr0OM,490
30
30
  posthog/ai/openai/openai.py,sha256=ts95vdvWH7h0TX4FpLLK_wU_7H0MP3eZBEg0S-lsCKw,20127
31
- posthog/ai/openai/openai_async.py,sha256=Ulcv_R8vgYq0wewrVG7QrIl0aiL66F6Vmyp97OoWaiQ,21757
31
+ posthog/ai/openai/openai_async.py,sha256=QFewU-8VBW1BhrNHkKCFuW57jqu2RSnF2VZ9mDuxjbE,21775
32
32
  posthog/ai/openai/openai_converter.py,sha256=B38g_RgN1n7mbxbDDAZFcu50RO4UHCtJQAmpvDVry7o,20451
33
33
  posthog/ai/openai/openai_providers.py,sha256=zQIFTXHS2-dBKQX7FZxTFo7rIj5iiN7VHm9_2RzuDs8,3941
34
34
  posthog/integrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -47,8 +47,8 @@ posthog/test/test_request.py,sha256=l19WVyZQc4Iqmh_bpnAFOj4nGRpDK1iO-o5aJDQfFdo,
47
47
  posthog/test/test_size_limited_dict.py,sha256=Wom7BkzpHmusHilZy0SV3PNzhw7ucuQgqrx86jf8euo,765
48
48
  posthog/test/test_types.py,sha256=csLuBiz6RMV36cpg9LVIor4Khq6MfjjGxYXodx5VttY,7586
49
49
  posthog/test/test_utils.py,sha256=NUs2bgqrVuMdnKRq52syizgglt5_7wxxZl3dDMun-Tg,9602
50
- posthog-6.7.6.dist-info/licenses/LICENSE,sha256=wGf9JBotDkSygFj43m49oiKlFnpMnn97keiZKF-40vE,2450
51
- posthog-6.7.6.dist-info/METADATA,sha256=WtuMCcvYtsP4wmfCm1eP8sWZF-MUcRLlBpGXpMocE6w,6015
52
- posthog-6.7.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
53
- posthog-6.7.6.dist-info/top_level.txt,sha256=7FBLsRjIUHVKQsXIhozuI3k-mun1tapp8iZO9EmUPEw,8
54
- posthog-6.7.6.dist-info/RECORD,,
50
+ posthog-6.7.8.dist-info/licenses/LICENSE,sha256=wGf9JBotDkSygFj43m49oiKlFnpMnn97keiZKF-40vE,2450
51
+ posthog-6.7.8.dist-info/METADATA,sha256=oBQ-wajbk0I-05JM4RgSvW9RuKFUoiKF9h2U2UrBzPs,6015
52
+ posthog-6.7.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
53
+ posthog-6.7.8.dist-info/top_level.txt,sha256=7FBLsRjIUHVKQsXIhozuI3k-mun1tapp8iZO9EmUPEw,8
54
+ posthog-6.7.8.dist-info/RECORD,,