promptlayer 1.0.31__tar.gz → 1.0.32__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.31
3
+ Version: 1.0.32
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.31"
3
+ __version__ = "1.0.32"
4
4
  __all__ = ["PromptLayer", "AsyncPromptLayer", "__version__"]
@@ -28,7 +28,23 @@ class ImageContent(TypedDict, total=False):
28
28
  image_url: ImageUrl
29
29
 
30
30
 
31
- Content = Union[TextContent, ImageContent]
31
+ class Media(TypedDict, total=False):
32
+ title: str
33
+ type: str
34
+ url: str
35
+
36
+
37
+ class MediaContnt(TypedDict, total=False):
38
+ type: Literal["media"]
39
+ media: Media
40
+
41
+
42
+ class MediaVariable(TypedDict, total=False):
43
+ type: Literal["media_variable"]
44
+ name: str
45
+
46
+
47
+ Content = Union[TextContent, ImageContent, MediaContnt, MediaVariable]
32
48
 
33
49
 
34
50
  class Function(TypedDict, total=False):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "promptlayer"
3
- version = "1.0.31"
3
+ version = "1.0.32"
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