promptlayer 0.5.4__tar.gz → 0.5.6__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: 0.5.4
3
+ Version: 0.5.6
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
- 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_labels: Optional[List[str]] = None
155
155
 
156
156
 
157
157
  class BasePromptTemplateResponse(TypedDict):
@@ -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_labels": body.get("release_labels"),
618
+ },
615
619
  )
616
620
  if response.status_code == 400:
617
621
  raise Exception(
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "promptlayer"
3
- version = "0.5.4"
3
+ version = "0.5.6"
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