promptlayer 1.0.20__py3-none-any.whl → 1.0.21__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 PromptLayer
2
2
 
3
- __version__ = "1.0.20"
3
+ __version__ = "1.0.21"
4
4
  __all__ = ["PromptLayer", "__version__"]
promptlayer/utils.py CHANGED
@@ -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
  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
- promptlayer/__init__.py,sha256=cL0dESTkFuO6urMy37H4-l4eueAOO7MP-Hl9lt5LHws,102
1
+ promptlayer/__init__.py,sha256=k8vF79D72Sb1kRpenJw4f8cmwy7xXtigb-fo9ebfv_I,102
2
2
  promptlayer/groups/__init__.py,sha256=-xs-2cn0nc0D_5YxZr3nC86iTdRVZmBhEpOKDJXE-sQ,224
3
3
  promptlayer/groups/groups.py,sha256=yeO6T0TM3qB0ondZRiHhcH8G06YygrpFoM8b9RmoIao,165
4
4
  promptlayer/promptlayer.py,sha256=9pQkicXafiEHw4kS5CiIBRzECg7I6VCuQSKKaAEyE-4,15401
@@ -10,8 +10,8 @@ promptlayer/track/track.py,sha256=XNEZT9yNiRBPp9vaDZo_f0dP_ldOu8q1qafpVfS5Ze8,16
10
10
  promptlayer/types/__init__.py,sha256=xJcvQuOk91ZBBePb40-1FDNDKYrZoH5lPE2q6_UhprM,111
11
11
  promptlayer/types/prompt_template.py,sha256=TUXLXvuvew0EBLfTMBa2LhFeQoF7R-tcFKg7_UUtHMQ,4433
12
12
  promptlayer/types/request_log.py,sha256=xU6bcxQar6GaBOJlgZTavXUV3FjE8sF_nSjPu4Ya_00,174
13
- promptlayer/utils.py,sha256=wWsep8gFMAlAaZgzo6g8uLwoBA5uIql1PAnq7nSUw8c,30398
14
- promptlayer-1.0.20.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
15
- promptlayer-1.0.20.dist-info/METADATA,sha256=5XLJbk34lEE8l67mlaAtNZVZEl6GlODn1x1YrkSlTB8,4609
16
- promptlayer-1.0.20.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
17
- promptlayer-1.0.20.dist-info/RECORD,,
13
+ promptlayer/utils.py,sha256=e9Ez961AV_iGmWWH9B6SuGVTh7TYbSJa_VgY2LwkrTk,30622
14
+ promptlayer-1.0.21.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
15
+ promptlayer-1.0.21.dist-info/METADATA,sha256=ur4ap_sJ3KKhp8IP9M83I3GKxZ35jSz-BNiB1zJb6kA,4609
16
+ promptlayer-1.0.21.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
17
+ promptlayer-1.0.21.dist-info/RECORD,,