promptlayer 1.0.57__py3-none-any.whl → 1.0.58__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.

Potentially problematic release.


This version of promptlayer might be problematic. Click here for more details.

promptlayer/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  from .promptlayer import AsyncPromptLayer, PromptLayer
2
2
 
3
- __version__ = "1.0.57"
3
+ __version__ = "1.0.58"
4
4
  __all__ = ["PromptLayer", "AsyncPromptLayer", "__version__"]
promptlayer/utils.py CHANGED
@@ -1911,7 +1911,7 @@ def google_chat_request(client, **kwargs):
1911
1911
  history = [Content(**item) for item in kwargs.get("history", [])]
1912
1912
  generation_config = kwargs.get("generation_config", {})
1913
1913
  chat = client.chats.create(model=model, history=history, config=generation_config)
1914
- last_message = history[-1].parts[0] if history else None
1914
+ last_message = history[-1].parts[0] if history else ""
1915
1915
  if stream:
1916
1916
  return chat.send_message_stream(message=last_message)
1917
1917
  return chat.send_message(message=last_message)
@@ -2008,7 +2008,7 @@ async def agoogle_chat_request(client, **kwargs):
2008
2008
  history = [Content(**item) for item in kwargs.get("history", [])]
2009
2009
  generation_config = kwargs.get("generation_config", {})
2010
2010
  chat = client.aio.chats.create(model=model, history=history, config=generation_config)
2011
- last_message = history[-1].parts[0] if history else None
2011
+ last_message = history[-1].parts[0] if history else ""
2012
2012
  if stream:
2013
2013
  return await chat.send_message_stream(message=last_message)
2014
2014
  return await chat.send_message(message=last_message)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: promptlayer
3
- Version: 1.0.57
3
+ Version: 1.0.58
4
4
  Summary: PromptLayer is a platform for prompt engineering and tracks your LLM requests.
5
5
  License: Apache-2.0
6
6
  Author: Magniv
@@ -1,4 +1,4 @@
1
- promptlayer/__init__.py,sha256=uvVwr1nN_g3tfP5Ka_jwOhCRuY1vQIweZrXfYK801Ak,140
1
+ promptlayer/__init__.py,sha256=kndG0ClzL7nS-XlOQ97smsiXqqAtHhuLSk_ofAQFZBQ,140
2
2
  promptlayer/groups/__init__.py,sha256=xhOAolLUBkr76ZHvJr29OwjCIk1V9qKQXjZCuyTJUIY,429
3
3
  promptlayer/groups/groups.py,sha256=YPROicy-TzpkrpA8vOpZS2lwvJ6VRtlbQ1S2oT1N0vM,338
4
4
  promptlayer/promptlayer.py,sha256=4MtP_byvYdVi4yZp_VCyVpPGx3iAaijwDZHPoYDfqZc,22212
@@ -11,8 +11,8 @@ promptlayer/track/track.py,sha256=A-awcYwsSwxktrlCMchy8NITIquwxU1UXbgLZMwqrA0,31
11
11
  promptlayer/types/__init__.py,sha256=xJcvQuOk91ZBBePb40-1FDNDKYrZoH5lPE2q6_UhprM,111
12
12
  promptlayer/types/prompt_template.py,sha256=blkVBhh4u5pMhgX_Dsn78sN7Rv2Vy_zhd1-NERLXTpM,5075
13
13
  promptlayer/types/request_log.py,sha256=xU6bcxQar6GaBOJlgZTavXUV3FjE8sF_nSjPu4Ya_00,174
14
- promptlayer/utils.py,sha256=bUrDMZtG4jSfp7nHc6A5ce3n7-5K1LCAlzEOr3y2ACw,73819
15
- promptlayer-1.0.57.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
- promptlayer-1.0.57.dist-info/METADATA,sha256=lh7g5d0UA4rZXzJTxueyn8oobJqosEB9EbM3ytnISF4,4819
17
- promptlayer-1.0.57.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
18
- promptlayer-1.0.57.dist-info/RECORD,,
14
+ promptlayer/utils.py,sha256=J4QyN91Qn2aXMPoEOwYPDhSz43J2QJp4bxfbkXwQgkc,73815
15
+ promptlayer-1.0.58.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
+ promptlayer-1.0.58.dist-info/METADATA,sha256=s4q7LYZADyOi5ma2WTuhXgvsvotDKssvE5cVB-er3cQ,4819
17
+ promptlayer-1.0.58.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
18
+ promptlayer-1.0.58.dist-info/RECORD,,