promptlayer 1.0.70__py3-none-any.whl → 1.0.71__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.70"
3
+ __version__ = "1.0.71"
4
4
  __all__ = ["PromptLayer", "AsyncPromptLayer", "__version__"]
promptlayer/utils.py CHANGED
@@ -1456,7 +1456,7 @@ def google_chat_request(client, **kwargs):
1456
1456
  history = [Content(**item) for item in kwargs.get("history", [])]
1457
1457
  generation_config = kwargs.get("generation_config", {})
1458
1458
  chat = client.chats.create(model=model, history=history, config=generation_config)
1459
- last_message = history[-1].parts[0] if history else ""
1459
+ last_message = history[-1].parts if history else ""
1460
1460
  if stream:
1461
1461
  return chat.send_message_stream(message=last_message)
1462
1462
  return chat.send_message(message=last_message)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: promptlayer
3
- Version: 1.0.70
3
+ Version: 1.0.71
4
4
  Summary: PromptLayer is a platform for prompt engineering and tracks your LLM requests.
5
5
  License: Apache-2.0
6
6
  License-File: LICENSE
@@ -1,4 +1,4 @@
1
- promptlayer/__init__.py,sha256=rmNkVTlgU9h1Mc6KGq3S6-3u1O86hdDAOxZ7xU4xxJo,140
1
+ promptlayer/__init__.py,sha256=R1toGawVL32byfVpvRnZ1Kt5zuCtw7qm2dfxuWb7EBc,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=hxzzq5bXkOJXvRCbBmtDLCSb4JlozpTJ00Ofk5Y_pQg,22901
@@ -15,8 +15,8 @@ promptlayer/track/track.py,sha256=A-awcYwsSwxktrlCMchy8NITIquwxU1UXbgLZMwqrA0,31
15
15
  promptlayer/types/__init__.py,sha256=xJcvQuOk91ZBBePb40-1FDNDKYrZoH5lPE2q6_UhprM,111
16
16
  promptlayer/types/prompt_template.py,sha256=cqxNX9QQHKh1lwpwSp-IjNI8Yw9jOVNI3frAflz23sQ,5155
17
17
  promptlayer/types/request_log.py,sha256=xU6bcxQar6GaBOJlgZTavXUV3FjE8sF_nSjPu4Ya_00,174
18
- promptlayer/utils.py,sha256=bcNQc9MvJXP5vaYDKzQqkG2iJ60pes1lPozFgCxuwns,61199
19
- promptlayer-1.0.70.dist-info/METADATA,sha256=1k36X6MGhGnyv_RJZ_pm868y9QHes8ZGj9P_nAVkkW0,4892
20
- promptlayer-1.0.70.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
21
- promptlayer-1.0.70.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
22
- promptlayer-1.0.70.dist-info/RECORD,,
18
+ promptlayer/utils.py,sha256=8O5SDJidRYfDX0bkl4J3IiNvS6lH03KQZ0bYA9yMueg,61196
19
+ promptlayer-1.0.71.dist-info/METADATA,sha256=W1xBEkS2_JIGWvYM_7BhWMHJEFvvgEnmdNrVl3ZJa_A,4892
20
+ promptlayer-1.0.71.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
21
+ promptlayer-1.0.71.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
22
+ promptlayer-1.0.71.dist-info/RECORD,,