promptlayer 1.0.6__tar.gz → 1.0.7__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: promptlayer
3
- Version: 1.0.6
3
+ Version: 1.0.7
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
@@ -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 hasattr(result, "content_block") and hasattr(
440
- result.content_block, "text"
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"):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "promptlayer"
3
- version = "1.0.6"
3
+ version = "1.0.7"
4
4
  description = "PromptLayer is a platform for prompt engineering and tracks your LLM requests."
5
5
  authors = ["Magniv <hello@magniv.io>"]
6
6
  license = "Apache-2.0"
File without changes
File without changes