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.
- {promptlayer-1.0.20 → promptlayer-1.0.21}/PKG-INFO +1 -1
- {promptlayer-1.0.20 → promptlayer-1.0.21}/promptlayer/__init__.py +1 -1
- {promptlayer-1.0.20 → promptlayer-1.0.21}/promptlayer/utils.py +7 -0
- {promptlayer-1.0.20 → promptlayer-1.0.21}/pyproject.toml +1 -1
- {promptlayer-1.0.20 → promptlayer-1.0.21}/LICENSE +0 -0
- {promptlayer-1.0.20 → promptlayer-1.0.21}/README.md +0 -0
- {promptlayer-1.0.20 → promptlayer-1.0.21}/promptlayer/groups/__init__.py +0 -0
- {promptlayer-1.0.20 → promptlayer-1.0.21}/promptlayer/groups/groups.py +0 -0
- {promptlayer-1.0.20 → promptlayer-1.0.21}/promptlayer/promptlayer.py +0 -0
- {promptlayer-1.0.20 → promptlayer-1.0.21}/promptlayer/promptlayer_base.py +0 -0
- {promptlayer-1.0.20 → promptlayer-1.0.21}/promptlayer/span_exporter.py +0 -0
- {promptlayer-1.0.20 → promptlayer-1.0.21}/promptlayer/templates.py +0 -0
- {promptlayer-1.0.20 → promptlayer-1.0.21}/promptlayer/track/__init__.py +0 -0
- {promptlayer-1.0.20 → promptlayer-1.0.21}/promptlayer/track/track.py +0 -0
- {promptlayer-1.0.20 → promptlayer-1.0.21}/promptlayer/types/__init__.py +0 -0
- {promptlayer-1.0.20 → promptlayer-1.0.21}/promptlayer/types/prompt_template.py +0 -0
- {promptlayer-1.0.20 → promptlayer-1.0.21}/promptlayer/types/request_log.py +0 -0
|
@@ -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(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|