promptlayer 0.1.78__tar.gz → 0.1.79__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.
- {promptlayer-0.1.78 → promptlayer-0.1.79}/PKG-INFO +1 -1
- {promptlayer-0.1.78 → promptlayer-0.1.79}/promptlayer/utils.py +28 -0
- {promptlayer-0.1.78 → promptlayer-0.1.79}/promptlayer.egg-info/PKG-INFO +1 -1
- {promptlayer-0.1.78 → promptlayer-0.1.79}/setup.py +1 -1
- {promptlayer-0.1.78 → promptlayer-0.1.79}/LICENSE +0 -0
- {promptlayer-0.1.78 → promptlayer-0.1.79}/README.md +0 -0
- {promptlayer-0.1.78 → promptlayer-0.1.79}/promptlayer/__init__.py +0 -0
- {promptlayer-0.1.78 → promptlayer-0.1.79}/promptlayer/langchain/__init__.py +0 -0
- {promptlayer-0.1.78 → promptlayer-0.1.79}/promptlayer/langchain/llms/__init__.py +0 -0
- {promptlayer-0.1.78 → promptlayer-0.1.79}/promptlayer/langchain/llms/openai.py +0 -0
- {promptlayer-0.1.78 → promptlayer-0.1.79}/promptlayer/promptlayer.py +0 -0
- {promptlayer-0.1.78 → promptlayer-0.1.79}/promptlayer/prompts/__init__.py +0 -0
- {promptlayer-0.1.78 → promptlayer-0.1.79}/promptlayer/prompts/prompts.py +0 -0
- {promptlayer-0.1.78 → promptlayer-0.1.79}/promptlayer/track/__init__.py +0 -0
- {promptlayer-0.1.78 → promptlayer-0.1.79}/promptlayer/track/track.py +0 -0
- {promptlayer-0.1.78 → promptlayer-0.1.79}/promptlayer.egg-info/SOURCES.txt +0 -0
- {promptlayer-0.1.78 → promptlayer-0.1.79}/promptlayer.egg-info/dependency_links.txt +0 -0
- {promptlayer-0.1.78 → promptlayer-0.1.79}/promptlayer.egg-info/requires.txt +0 -0
- {promptlayer-0.1.78 → promptlayer-0.1.79}/promptlayer.egg-info/top_level.txt +0 -0
- {promptlayer-0.1.78 → promptlayer-0.1.79}/setup.cfg +0 -0
|
@@ -148,6 +148,34 @@ def promptlayer_api_request(
|
|
|
148
148
|
return request_response.json().get("request_id")
|
|
149
149
|
|
|
150
150
|
|
|
151
|
+
def promptlayer_api_request_async(
|
|
152
|
+
function_name,
|
|
153
|
+
provider_type,
|
|
154
|
+
args,
|
|
155
|
+
kwargs,
|
|
156
|
+
tags,
|
|
157
|
+
response,
|
|
158
|
+
request_start_time,
|
|
159
|
+
request_end_time,
|
|
160
|
+
api_key,
|
|
161
|
+
return_pl_id=False,
|
|
162
|
+
):
|
|
163
|
+
return run_in_thread_async(
|
|
164
|
+
None,
|
|
165
|
+
promptlayer_api_request,
|
|
166
|
+
function_name,
|
|
167
|
+
provider_type,
|
|
168
|
+
args,
|
|
169
|
+
kwargs,
|
|
170
|
+
tags,
|
|
171
|
+
response,
|
|
172
|
+
request_start_time,
|
|
173
|
+
request_end_time,
|
|
174
|
+
api_key,
|
|
175
|
+
return_pl_id=return_pl_id,
|
|
176
|
+
)
|
|
177
|
+
|
|
178
|
+
|
|
151
179
|
def promptlayer_get_prompt(prompt_name, api_key):
|
|
152
180
|
try:
|
|
153
181
|
request_response = requests.post(
|
|
@@ -17,7 +17,7 @@ setup(
|
|
|
17
17
|
author_email="hello@magniv.io",
|
|
18
18
|
url="https://www.promptlayer.com",
|
|
19
19
|
project_urls={"Documentation": "https://magniv.notion.site/Prompt-Layer-Docs-db0e6f50cacf4564a6d09824ba17a629",},
|
|
20
|
-
version="0.1.
|
|
20
|
+
version="0.1.79",
|
|
21
21
|
py_modules=["promptlayer"],
|
|
22
22
|
packages=find_packages(),
|
|
23
23
|
install_requires=["requests", "openai", "langchain"],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|