promptlayer 1.0.33__py3-none-any.whl → 1.0.34__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.33"
3
+ __version__ = "1.0.34"
4
4
  __all__ = ["PromptLayer", "AsyncPromptLayer", "__version__"]
promptlayer/utils.py CHANGED
@@ -1642,9 +1642,10 @@ def mistral_request(
1642
1642
 
1643
1643
  client = Mistral(api_key=os.environ.get("MISTRAL_API_KEY"))
1644
1644
  if "stream" in kwargs and kwargs["stream"]:
1645
- cleaned_kwargs = kwargs.copy()
1646
- cleaned_kwargs.pop("stream")
1647
- return client.chat.stream(**cleaned_kwargs)
1645
+ kwargs.pop("stream")
1646
+ return client.chat.stream(**kwargs)
1647
+ if "stream" in kwargs:
1648
+ kwargs.pop("stream")
1648
1649
  return client.chat.complete(**kwargs)
1649
1650
 
1650
1651
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: promptlayer
3
- Version: 1.0.33
3
+ Version: 1.0.34
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=9PkqLaeeDbughCsz75EBpu9x2hdWVTMrYQHfTiAXpg4,140
1
+ promptlayer/__init__.py,sha256=i7ms716ks4DoOJfFle-Me41ZwM58biK11-kQqjjH-Zo,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=rMqH5c-NpfGo41gbaZdurXvUIOa6-QJWDAZ4W5ajJko,20119
@@ -11,8 +11,8 @@ promptlayer/track/track.py,sha256=UdkCxhWUvhvPdhsoHj4qmeiRq6xLcWmeIdYXrgZph04,32
11
11
  promptlayer/types/__init__.py,sha256=xJcvQuOk91ZBBePb40-1FDNDKYrZoH5lPE2q6_UhprM,111
12
12
  promptlayer/types/prompt_template.py,sha256=sv5iMV8Iix2LCMUSMTkfb8PohfKp-vR9hRMck8OXSVc,4728
13
13
  promptlayer/types/request_log.py,sha256=xU6bcxQar6GaBOJlgZTavXUV3FjE8sF_nSjPu4Ya_00,174
14
- promptlayer/utils.py,sha256=eOh3SKupPE0D0EobkHsXd33JWkmd3mJEIjD_sp5C1Uw,59464
15
- promptlayer-1.0.33.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
- promptlayer-1.0.33.dist-info/METADATA,sha256=_979XJIxaGP3HTjFWmeeY0PuJTsb9vFSl_f3twPOaaQ,4824
17
- promptlayer-1.0.33.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
18
- promptlayer-1.0.33.dist-info/RECORD,,
14
+ promptlayer/utils.py,sha256=230OFFkG2DoaRCh-sgUZNoQxKEQT0RVKW3jJ6CciQKo,59465
15
+ promptlayer-1.0.34.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
+ promptlayer-1.0.34.dist-info/METADATA,sha256=SOTWiUCjpanIjd9YusTV9e3tb9Ihz9FBRanSqoY5aSQ,4824
17
+ promptlayer-1.0.34.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
18
+ promptlayer-1.0.34.dist-info/RECORD,,