promptlayer 1.0.16__py3-none-any.whl → 1.0.78__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.
@@ -1,20 +1,29 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: promptlayer
3
- Version: 1.0.16
3
+ Version: 1.0.78
4
4
  Summary: PromptLayer is a platform for prompt engineering and tracks your LLM requests.
5
5
  License: Apache-2.0
6
+ License-File: LICENSE
6
7
  Author: Magniv
7
8
  Author-email: hello@magniv.io
8
- Requires-Python: >=3.8.1,<4.0
9
+ Requires-Python: >=3.9,<4.0
9
10
  Classifier: License :: OSI Approved :: Apache Software License
10
11
  Classifier: Programming Language :: Python :: 3
11
12
  Classifier: Programming Language :: Python :: 3.9
12
13
  Classifier: Programming Language :: Python :: 3.10
13
14
  Classifier: Programming Language :: Python :: 3.11
14
15
  Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ Requires-Dist: ably (>=2.0.11,<3.0.0)
19
+ Requires-Dist: aiohttp (>=3.10.10,<4.0.0)
20
+ Requires-Dist: centrifuge-python (>=0.4.1,<0.5.0)
21
+ Requires-Dist: httpx (>=0.28.1,<0.29.0)
22
+ Requires-Dist: nest-asyncio (>=1.6.0,<2.0.0)
15
23
  Requires-Dist: opentelemetry-api (>=1.26.0,<2.0.0)
16
24
  Requires-Dist: opentelemetry-sdk (>=1.26.0,<2.0.0)
17
25
  Requires-Dist: requests (>=2.31.0,<3.0.0)
26
+ Requires-Dist: tenacity (>=9.1.2,<10.0.0)
18
27
  Description-Content-Type: text/markdown
19
28
 
20
29
  <div align="center">
@@ -27,11 +36,11 @@ Description-Content-Type: text/markdown
27
36
  <a href="https://docs.promptlayer.com"><img alt="Docs" src="https://custom-icon-badges.herokuapp.com/badge/docs-PL-green.svg?logo=cake&style=for-the-badge"></a>
28
37
  <a href="https://www.loom.com/share/196c42e43acd4a369d75e9a7374a0850"><img alt="Demo with Loom" src="https://img.shields.io/badge/Demo-loom-552586.svg?logo=loom&style=for-the-badge&labelColor=gray"></a>
29
38
 
30
- ---
39
+ ---
31
40
 
32
41
  <div align="left">
33
42
 
34
- [PromptLayer](https://promptlayer.com/) is the first platform that allows you to track, manage, and share your GPT prompt engineering. PromptLayer acts a middleware between your code and OpenAI’s python library.
43
+ [PromptLayer](https://promptlayer.com/) is the first platform that allows you to track, manage, and share your GPT prompt engineering. PromptLayer acts a middleware between your code and OpenAI’s python library.
35
44
 
36
45
  PromptLayer records all your OpenAI API requests, allowing you to search and explore request history in the PromptLayer dashboard.
37
46
 
@@ -72,14 +81,14 @@ openai = promptlayer.openai
72
81
 
73
82
  ### Adding PromptLayer tags: `pl_tags`
74
83
 
75
- PromptLayer allows you to add tags through the `pl_tags` argument. This allows you to track and group requests in the dashboard.
84
+ PromptLayer allows you to add tags through the `pl_tags` argument. This allows you to track and group requests in the dashboard.
76
85
 
77
86
  *Tags are not required but we recommend them!*
78
87
 
79
88
  ```python
80
89
  openai.Completion.create(
81
- engine="text-ada-001",
82
- prompt="My name is",
90
+ engine="text-ada-001",
91
+ prompt="My name is",
83
92
  pl_tags=["name-guessing", "pipeline-2"]
84
93
  )
85
94
  ```
@@ -88,11 +97,11 @@ After making your first few requests, you should be able to see them in the Prom
88
97
 
89
98
  ## Using the REST API
90
99
 
91
- This Python library is a wrapper over PromptLayer's REST API. If you use another language, like Javascript, just interact directly with the API.
100
+ This Python library is a wrapper over PromptLayer's REST API. If you use another language, like Javascript, just interact directly with the API.
92
101
 
93
102
  Here is an example request below:
94
103
 
95
- ```jsx
104
+ ```python
96
105
  import requests
97
106
  request_response = requests.post(
98
107
  "https://api.promptlayer.com/track-request",
@@ -0,0 +1,23 @@
1
+ promptlayer/__init__.py,sha256=pveFz6sTtgrSdV8J30P3gGlxGS5CLJhv9pqjgPx9Dxs,1130
2
+ promptlayer/exceptions.py,sha256=uERG7eGVrpFxT6Liuhl1BM0ntQTYmfVvulyRit2rxFc,2782
3
+ promptlayer/groups/__init__.py,sha256=pUBynk9iWzX8e2alhyiLn5tloc5PmWA4SvFzDdE9DTw,724
4
+ promptlayer/groups/groups.py,sha256=4rut8h2LvqAPNr5MG97vdvOAt1URzObl0aWEgRESHWU,368
5
+ promptlayer/promptlayer.py,sha256=_9J3_OrSBwbkk0W5EuMfBgylP9VoN1_VSPXjT9HCNj0,26351
6
+ promptlayer/promptlayer_base.py,sha256=4iv1jA8gRw2nT5C-0dKEMS3x-FI5gmg8S4eMXFcnxeU,7477
7
+ promptlayer/promptlayer_mixins.py,sha256=otVCbEkfbHLUnMPcCaViTEaXUds-JAV9UnwcmtD2q6w,16315
8
+ promptlayer/span_exporter.py,sha256=5dufK_Qu__RazRXs3HV7kqn2YVWsxBwt9R4tmXlVdzU,2725
9
+ promptlayer/streaming/__init__.py,sha256=nKWwUsAy4FjJLT6rxntXCyVlKOov-xT2dk7sOXrgpUs,1897
10
+ promptlayer/streaming/blueprint_builder.py,sha256=urTA7TLSc_5DgDbp2MbTW7NKT9ZVMj5KagMcWtQo7S4,16041
11
+ promptlayer/streaming/response_handlers.py,sha256=LUPlaahsI-iTspWhZaD4Qxw3NI2I6shwpSOTEbcclac,35760
12
+ promptlayer/streaming/stream_processor.py,sha256=atnaBg31kmTPSF433DF7uV3jiLuJOnA5Vz8tVCQ5v2Y,4083
13
+ promptlayer/templates.py,sha256=tiCKgTzytzNOwFdq_UFbaQrCGakWeYAPjF5n9uM0nao,1641
14
+ promptlayer/track/__init__.py,sha256=a1rCuaxNeweBNZVXPoNnmBXKeiU_PXjOLqxapYopEeo,2276
15
+ promptlayer/track/track.py,sha256=hvCQSY6JlDsk4NzmibF1Zbg1DairOpmFLcmVLeJ1cu0,4567
16
+ promptlayer/types/__init__.py,sha256=xJcvQuOk91ZBBePb40-1FDNDKYrZoH5lPE2q6_UhprM,111
17
+ promptlayer/types/prompt_template.py,sha256=5Tjp6I3s_L-i_-LkB7ZsQDVBHd2j5xUQpuSnJZ2nIlI,5672
18
+ promptlayer/types/request_log.py,sha256=xU6bcxQar6GaBOJlgZTavXUV3FjE8sF_nSjPu4Ya_00,174
19
+ promptlayer/utils.py,sha256=VvHCNrRqRWZPC73n7H3Zx2s21_hDfgwtX4PZpryw71M,78341
20
+ promptlayer-1.0.78.dist-info/METADATA,sha256=pCcesGKRREAWn5TjmxQ62-wKslWTBQ5JV0AaQ3_p9_4,4984
21
+ promptlayer-1.0.78.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
22
+ promptlayer-1.0.78.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
23
+ promptlayer-1.0.78.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.0
2
+ Generator: poetry-core 2.2.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,16 +0,0 @@
1
- promptlayer/__init__.py,sha256=NPhgcyisSfks_AFSRjhlScwwHQRlZSKiPBJS-Lm_grg,102
2
- promptlayer/groups/__init__.py,sha256=-xs-2cn0nc0D_5YxZr3nC86iTdRVZmBhEpOKDJXE-sQ,224
3
- promptlayer/groups/groups.py,sha256=yeO6T0TM3qB0ondZRiHhcH8G06YygrpFoM8b9RmoIao,165
4
- promptlayer/promptlayer.py,sha256=xqnwYO5p2JPA_mQbP-5l9yQlQ1bKrfms803CrJBSiFA,13824
5
- promptlayer/promptlayer_base.py,sha256=sev-EZehRXJSZSmJtMkqmAUK1345pqbDY_lNjPP5MYA,7158
6
- promptlayer/span_exporter.py,sha256=zIJNsb3Fe6yb5wKLDmkoPF2wqFjk1p39E0jWHD2plzI,2658
7
- promptlayer/templates.py,sha256=aY_-BCrL0AgIdYEUE28pi0AP_avTVAgwv5hgzrh75vo,717
8
- promptlayer/track/__init__.py,sha256=VheO_Au0lffGlPKYYPQwkv8ci16wSXABCVSNRoFWu_w,945
9
- promptlayer/track/track.py,sha256=XNEZT9yNiRBPp9vaDZo_f0dP_ldOu8q1qafpVfS5Ze8,1610
10
- promptlayer/types/__init__.py,sha256=ulWSyCrk5hZ_PI-nKGpd6GPcRaK8lqP4wFl0LPNUYWk,61
11
- promptlayer/types/prompt_template.py,sha256=QbxYSeIubrwp8KmDKdt9syAwzONFPh_So9yr4H73ANQ,4429
12
- promptlayer/utils.py,sha256=-p0qapUvkZYJd_Dfat3c8LANXWU1JN0bJB91IyjB8iA,29656
13
- promptlayer-1.0.16.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
14
- promptlayer-1.0.16.dist-info/METADATA,sha256=HpWQPpYbuABRRj4feBBLYpZvviPcIe25q5S0fBKlzR8,4609
15
- promptlayer-1.0.16.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
16
- promptlayer-1.0.16.dist-info/RECORD,,