promptlayer 1.0.9__tar.gz → 1.0.10__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.9
3
+ Version: 1.0.10
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
@@ -160,12 +160,12 @@ class PromptLayer:
160
160
  return stream_response(response, _track_request, stream_function)
161
161
  request_log = _track_request(request_response=response.model_dump())
162
162
  data = {
163
- "request_id": request_log["request_id"],
163
+ "request_id": request_log.get("request_id", None),
164
164
  "raw_response": response,
165
- "prompt_blueprint": request_log["prompt_blueprint"],
165
+ "prompt_blueprint": request_log.get("prompt_blueprint", None),
166
166
  }
167
167
  return data
168
168
 
169
169
 
170
- __version__ = "1.0.9"
170
+ __version__ = "1.0.10"
171
171
  __all__ = ["PromptLayer", "__version__"]
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "promptlayer"
3
- version = "1.0.9"
3
+ version = "1.0.10"
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