promptlayer 1.0.6__py3-none-any.whl → 1.0.7__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/utils.py +5 -2
- {promptlayer-1.0.6.dist-info → promptlayer-1.0.7.dist-info}/METADATA +1 -1
- {promptlayer-1.0.6.dist-info → promptlayer-1.0.7.dist-info}/RECORD +5 -5
- {promptlayer-1.0.6.dist-info → promptlayer-1.0.7.dist-info}/LICENSE +0 -0
- {promptlayer-1.0.6.dist-info → promptlayer-1.0.7.dist-info}/WHEEL +0 -0
promptlayer/utils.py
CHANGED
|
@@ -436,8 +436,11 @@ class GeneratorProxy:
|
|
|
436
436
|
response = f"{response}{result.completion}"
|
|
437
437
|
elif hasattr(result, "message") and isinstance(result.message, str):
|
|
438
438
|
response = f"{response}{result.message}"
|
|
439
|
-
elif
|
|
440
|
-
result
|
|
439
|
+
elif (
|
|
440
|
+
hasattr(result, "content_block")
|
|
441
|
+
and hasattr(result.content_block, "text")
|
|
442
|
+
and "type" in result
|
|
443
|
+
and result.type != "message_stop"
|
|
441
444
|
):
|
|
442
445
|
response = f"{response}{result.content_block.text}"
|
|
443
446
|
elif hasattr(result, "delta") and hasattr(result.delta, "text"):
|
|
@@ -7,8 +7,8 @@ promptlayer/track/__init__.py,sha256=VheO_Au0lffGlPKYYPQwkv8ci16wSXABCVSNRoFWu_w
|
|
|
7
7
|
promptlayer/track/track.py,sha256=XNEZT9yNiRBPp9vaDZo_f0dP_ldOu8q1qafpVfS5Ze8,1610
|
|
8
8
|
promptlayer/types/__init__.py,sha256=ulWSyCrk5hZ_PI-nKGpd6GPcRaK8lqP4wFl0LPNUYWk,61
|
|
9
9
|
promptlayer/types/prompt_template.py,sha256=1iqwH0f7MIITjUEH0BMnSKzMh2BbcB7W8rCmQEaUhQ0,4284
|
|
10
|
-
promptlayer/utils.py,sha256=
|
|
11
|
-
promptlayer-1.0.
|
|
12
|
-
promptlayer-1.0.
|
|
13
|
-
promptlayer-1.0.
|
|
14
|
-
promptlayer-1.0.
|
|
10
|
+
promptlayer/utils.py,sha256=jkto4JeHdEK7eoPN50H0AjlWZHk5twzFpMmvMP-rNZU,27941
|
|
11
|
+
promptlayer-1.0.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
12
|
+
promptlayer-1.0.7.dist-info/METADATA,sha256=pV6l0ZKiH6WqVVArjpvCQP-LlHT_G0tQPGVTqJCeTEQ,4506
|
|
13
|
+
promptlayer-1.0.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
14
|
+
promptlayer-1.0.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|