promptlayer 1.0.57__tar.gz → 1.0.58__tar.gz
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-1.0.57 → promptlayer-1.0.58}/PKG-INFO +1 -1
- {promptlayer-1.0.57 → promptlayer-1.0.58}/promptlayer/__init__.py +1 -1
- {promptlayer-1.0.57 → promptlayer-1.0.58}/promptlayer/utils.py +2 -2
- {promptlayer-1.0.57 → promptlayer-1.0.58}/pyproject.toml +1 -1
- {promptlayer-1.0.57 → promptlayer-1.0.58}/LICENSE +0 -0
- {promptlayer-1.0.57 → promptlayer-1.0.58}/README.md +0 -0
- {promptlayer-1.0.57 → promptlayer-1.0.58}/promptlayer/groups/__init__.py +0 -0
- {promptlayer-1.0.57 → promptlayer-1.0.58}/promptlayer/groups/groups.py +0 -0
- {promptlayer-1.0.57 → promptlayer-1.0.58}/promptlayer/promptlayer.py +0 -0
- {promptlayer-1.0.57 → promptlayer-1.0.58}/promptlayer/promptlayer_base.py +0 -0
- {promptlayer-1.0.57 → promptlayer-1.0.58}/promptlayer/promptlayer_mixins.py +0 -0
- {promptlayer-1.0.57 → promptlayer-1.0.58}/promptlayer/span_exporter.py +0 -0
- {promptlayer-1.0.57 → promptlayer-1.0.58}/promptlayer/templates.py +0 -0
- {promptlayer-1.0.57 → promptlayer-1.0.58}/promptlayer/track/__init__.py +0 -0
- {promptlayer-1.0.57 → promptlayer-1.0.58}/promptlayer/track/track.py +0 -0
- {promptlayer-1.0.57 → promptlayer-1.0.58}/promptlayer/types/__init__.py +0 -0
- {promptlayer-1.0.57 → promptlayer-1.0.58}/promptlayer/types/prompt_template.py +0 -0
- {promptlayer-1.0.57 → promptlayer-1.0.58}/promptlayer/types/request_log.py +0 -0
|
@@ -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
|
|
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
|
|
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)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|