promptlayer 1.0.3__tar.gz → 1.0.5__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: 1.0.3
3
+ Version: 1.0.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,6 @@ Classifier: Programming Language :: Python :: 3.9
12
12
  Classifier: Programming Language :: Python :: 3.10
13
13
  Classifier: Programming Language :: Python :: 3.11
14
14
  Classifier: Programming Language :: Python :: 3.12
15
- Requires-Dist: anthropic (>=0.25.8,<0.26.0)
16
- Requires-Dist: anyio (>=4.3.0,<5.0.0)
17
- Requires-Dist: openai (>=1.26.0,<2.0.0)
18
15
  Requires-Dist: requests (>=2.31.0,<3.0.0)
19
16
  Description-Content-Type: text/markdown
20
17
 
@@ -103,6 +103,8 @@ class PromptLayer:
103
103
  template_get_params["label"] = prompt_release_label
104
104
  if input_variables:
105
105
  template_get_params["input_variables"] = input_variables
106
+ if metadata:
107
+ template_get_params["metadata_filters"] = metadata
106
108
  prompt_blueprint = self.templates.get(prompt_name, template_get_params)
107
109
  prompt_template = prompt_blueprint["prompt_template"]
108
110
  if not prompt_blueprint["llm_kwargs"]:
@@ -8,6 +8,7 @@ class GetPromptTemplate(TypedDict, total=False):
8
8
  label: str
9
9
  provider: str
10
10
  input_variables: Dict[str, str]
11
+ metadata_filters: Dict[str, str]
11
12
 
12
13
 
13
14
  TemplateFormat = Literal["f-string", "jinja2"]
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "promptlayer"
3
- version = "1.0.3"
3
+ version = "1.0.5"
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"
@@ -9,15 +9,15 @@ readme = "README.md"
9
9
  [tool.poetry.dependencies]
10
10
  python = ">=3.8.1,<4.0"
11
11
  requests = "^2.31.0"
12
- openai = "^1.26.0"
13
- anyio = "^4.3.0"
14
- anthropic = "^0.25.8"
15
12
 
16
13
  [tool.poetry.group.dev.dependencies]
17
14
  langchain = "^0.0.260"
18
15
  behave = "^1.2.6"
19
16
  pytest = "^8.2.0"
20
17
  pytest-asyncio = "^0.23.6"
18
+ openai = "^1.26.0"
19
+ anyio = "^4.3.0"
20
+ anthropic = "^0.25.8"
21
21
 
22
22
  [build-system]
23
23
  requires = ["poetry-core"]
File without changes
File without changes