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 +1 -1
- promptlayer/utils.py +1 -1
- {promptlayer-1.0.70.dist-info → promptlayer-1.0.71.dist-info}/METADATA +1 -1
- {promptlayer-1.0.70.dist-info → promptlayer-1.0.71.dist-info}/RECORD +6 -6
- {promptlayer-1.0.70.dist-info → promptlayer-1.0.71.dist-info}/WHEEL +0 -0
- {promptlayer-1.0.70.dist-info → promptlayer-1.0.71.dist-info}/licenses/LICENSE +0 -0
promptlayer/__init__.py
CHANGED
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
|
|
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,4 +1,4 @@
|
|
|
1
|
-
promptlayer/__init__.py,sha256=
|
|
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=
|
|
19
|
-
promptlayer-1.0.
|
|
20
|
-
promptlayer-1.0.
|
|
21
|
-
promptlayer-1.0.
|
|
22
|
-
promptlayer-1.0.
|
|
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,,
|
|
File without changes
|
|
File without changes
|