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 +1 -1
- promptlayer/utils.py +4 -3
- {promptlayer-1.0.33.dist-info → promptlayer-1.0.34.dist-info}/METADATA +1 -1
- {promptlayer-1.0.33.dist-info → promptlayer-1.0.34.dist-info}/RECORD +6 -6
- {promptlayer-1.0.33.dist-info → promptlayer-1.0.34.dist-info}/LICENSE +0 -0
- {promptlayer-1.0.33.dist-info → promptlayer-1.0.34.dist-info}/WHEEL +0 -0
promptlayer/__init__.py
CHANGED
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
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
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,4 +1,4 @@
|
|
|
1
|
-
promptlayer/__init__.py,sha256=
|
|
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=
|
|
15
|
-
promptlayer-1.0.
|
|
16
|
-
promptlayer-1.0.
|
|
17
|
-
promptlayer-1.0.
|
|
18
|
-
promptlayer-1.0.
|
|
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,,
|
|
File without changes
|
|
File without changes
|