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.

@@ -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
- pass
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={"prompt_template": {**body}, "prompt_version": {**body}},
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(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: promptlayer
3
- Version: 0.5.4
3
+ Version: 0.5.5
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
@@ -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=pMFlCG8YAIajc3-GjW0Y9_9-m7_ysbuGDC0WZzFHZbI,3752
16
- promptlayer/utils.py,sha256=Gy-ODWrM_0sb2alkMoIBIelM8izYEF7r8Uw7bcEjaa0,21160
17
- promptlayer-0.5.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
18
- promptlayer-0.5.4.dist-info/METADATA,sha256=_zu-Wy8R2nDb68bOMEX2UhScDIw3yUok_9XsbwRtTY4,4475
19
- promptlayer-0.5.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
20
- promptlayer-0.5.4.dist-info/RECORD,,
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,,