promptlayer 1.0.20__tar.gz → 1.0.21__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.20
3
+ Version: 1.0.21
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
1
  from .promptlayer import PromptLayer
2
2
 
3
- __version__ = "1.0.20"
3
+ __version__ = "1.0.21"
4
4
  __all__ = ["PromptLayer", "__version__"]
@@ -666,6 +666,13 @@ def get_prompt_template(
666
666
  raise Exception(
667
667
  f"PromptLayer had the following error while getting your prompt template: {response.text}"
668
668
  )
669
+
670
+ warning = response.json().get("warning", None)
671
+ if warning is not None:
672
+ warn_on_bad_response(
673
+ warning,
674
+ "WARNING: While getting your prompt template",
675
+ )
669
676
  return response.json()
670
677
  except requests.exceptions.RequestException as e:
671
678
  raise Exception(
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "promptlayer"
3
- version = "1.0.20"
3
+ version = "1.0.21"
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