promptlayer 1.0.59__tar.gz → 1.0.60__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.3
2
2
  Name: promptlayer
3
- Version: 1.0.59
3
+ Version: 1.0.60
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
1
  from .promptlayer import AsyncPromptLayer, PromptLayer
2
2
 
3
- __version__ = "1.0.59"
3
+ __version__ = "1.0.60"
4
4
  __all__ = ["PromptLayer", "AsyncPromptLayer", "__version__"]
@@ -320,6 +320,7 @@ class PromptLayer(PromptLayerMixin):
320
320
  price: float = 0.0,
321
321
  function_name: str = "",
322
322
  score: int = 0,
323
+ prompt_id: Union[int, None] = None,
323
324
  ):
324
325
  return util_log_request(
325
326
  self.api_key,
@@ -340,6 +341,7 @@ class PromptLayer(PromptLayerMixin):
340
341
  price=price,
341
342
  function_name=function_name,
342
343
  score=score,
344
+ prompt_id=prompt_id,
343
345
  )
344
346
 
345
347
 
@@ -478,6 +480,7 @@ class AsyncPromptLayer(PromptLayerMixin):
478
480
  price: float = 0.0,
479
481
  function_name: str = "",
480
482
  score: int = 0,
483
+ prompt_id: Union[int, None] = None,
481
484
  ):
482
485
  return await autil_log_request(
483
486
  self.api_key,
@@ -498,6 +501,7 @@ class AsyncPromptLayer(PromptLayerMixin):
498
501
  price=price,
499
502
  function_name=function_name,
500
503
  score=score,
504
+ prompt_id=prompt_id,
501
505
  )
502
506
 
503
507
  async def _create_track_request_callable(
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "promptlayer"
3
- version = "1.0.59"
3
+ version = "1.0.60"
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"
@@ -27,6 +27,8 @@ anthropic = {extras = ["vertex"], version = "^0.57.1"}
27
27
  vcrpy = "<7.0.0"
28
28
  pytest-network = "^0.0.1"
29
29
  pytest-parametrize-cases = "^0.1.2"
30
+ pydantic = "^2.11.7"
31
+ pydantic-settings = "^2.10.1"
30
32
 
31
33
  [build-system]
32
34
  requires = ["poetry-core"]
File without changes
File without changes