promptlayer 0.5.4__py3-none-any.whl → 0.5.5__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/types/prompt_template.py +3 -3
- promptlayer/utils.py +5 -1
- {promptlayer-0.5.4.dist-info → promptlayer-0.5.5.dist-info}/METADATA +1 -1
- {promptlayer-0.5.4.dist-info → promptlayer-0.5.5.dist-info}/RECORD +6 -6
- {promptlayer-0.5.4.dist-info → promptlayer-0.5.5.dist-info}/LICENSE +0 -0
- {promptlayer-0.5.4.dist-info → promptlayer-0.5.5.dist-info}/WHEEL +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import Dict, List, Literal, Sequence, TypedDict, Union
|
|
1
|
+
from typing import Dict, List, Literal, Optional, Sequence, TypedDict, Union
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
class GetPromptTemplate(TypedDict, total=False):
|
|
@@ -150,8 +150,8 @@ class PromptVersion(TypedDict, total=False):
|
|
|
150
150
|
metadata: Metadata
|
|
151
151
|
|
|
152
152
|
|
|
153
|
-
class PublishPromptTemplate(BasePromptTemplate, PromptVersion):
|
|
154
|
-
|
|
153
|
+
class PublishPromptTemplate(BasePromptTemplate, PromptVersion, total=False):
|
|
154
|
+
release_label: Optional[str] = None
|
|
155
155
|
|
|
156
156
|
|
|
157
157
|
class BasePromptTemplateResponse(TypedDict):
|
promptlayer/utils.py
CHANGED
|
@@ -611,7 +611,11 @@ def publish_prompt_template(
|
|
|
611
611
|
response = requests.post(
|
|
612
612
|
f"{URL_API_PROMPTLAYER}/rest/prompt-templates",
|
|
613
613
|
headers={"X-API-KEY": get_api_key()},
|
|
614
|
-
json={
|
|
614
|
+
json={
|
|
615
|
+
"prompt_template": {**body},
|
|
616
|
+
"prompt_version": {**body},
|
|
617
|
+
"release_label": body.get("release_label"),
|
|
618
|
+
},
|
|
615
619
|
)
|
|
616
620
|
if response.status_code == 400:
|
|
617
621
|
raise Exception(
|
|
@@ -12,9 +12,9 @@ promptlayer/templates.py,sha256=CGRpioqb6jmlR4dnE1Cah27jlhQj1YBCIb8NcNOCpPI,542
|
|
|
12
12
|
promptlayer/track/__init__.py,sha256=tkIlHRZMX5GCKBlu4vYpQrxauPno2JDmP0M9RQxUBkQ,119
|
|
13
13
|
promptlayer/track/track.py,sha256=gNM3aAKAAtOc8TOjogpZorlwg4zM2hoWgRnBQfexmmo,1525
|
|
14
14
|
promptlayer/types/__init__.py,sha256=ulWSyCrk5hZ_PI-nKGpd6GPcRaK8lqP4wFl0LPNUYWk,61
|
|
15
|
-
promptlayer/types/prompt_template.py,sha256=
|
|
16
|
-
promptlayer/utils.py,sha256=
|
|
17
|
-
promptlayer-0.5.
|
|
18
|
-
promptlayer-0.5.
|
|
19
|
-
promptlayer-0.5.
|
|
20
|
-
promptlayer-0.5.
|
|
15
|
+
promptlayer/types/prompt_template.py,sha256=gkrM6sTBcmu_SBxylw5f3ftJnTqugLDKFXccA-XnFgg,3806
|
|
16
|
+
promptlayer/utils.py,sha256=gEGcR0S_blF5PX89RjipuZrau_lLutd4vNymqyBQjlA,21267
|
|
17
|
+
promptlayer-0.5.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
18
|
+
promptlayer-0.5.5.dist-info/METADATA,sha256=GtdPgZvi5dJMoMUSjKiUexiW0MYKiQJK20Tm8l29qBo,4475
|
|
19
|
+
promptlayer-0.5.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
20
|
+
promptlayer-0.5.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|