promptlayer 1.0.33__tar.gz → 1.0.35__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-1.0.33 → promptlayer-1.0.35}/PKG-INFO +2 -2
- {promptlayer-1.0.33 → promptlayer-1.0.35}/promptlayer/__init__.py +1 -1
- {promptlayer-1.0.33 → promptlayer-1.0.35}/promptlayer/types/prompt_template.py +8 -0
- {promptlayer-1.0.33 → promptlayer-1.0.35}/promptlayer/utils.py +4 -3
- {promptlayer-1.0.33 → promptlayer-1.0.35}/pyproject.toml +1 -1
- {promptlayer-1.0.33 → promptlayer-1.0.35}/LICENSE +0 -0
- {promptlayer-1.0.33 → promptlayer-1.0.35}/README.md +0 -0
- {promptlayer-1.0.33 → promptlayer-1.0.35}/promptlayer/groups/__init__.py +0 -0
- {promptlayer-1.0.33 → promptlayer-1.0.35}/promptlayer/groups/groups.py +0 -0
- {promptlayer-1.0.33 → promptlayer-1.0.35}/promptlayer/promptlayer.py +0 -0
- {promptlayer-1.0.33 → promptlayer-1.0.35}/promptlayer/promptlayer_base.py +0 -0
- {promptlayer-1.0.33 → promptlayer-1.0.35}/promptlayer/promptlayer_mixins.py +0 -0
- {promptlayer-1.0.33 → promptlayer-1.0.35}/promptlayer/span_exporter.py +0 -0
- {promptlayer-1.0.33 → promptlayer-1.0.35}/promptlayer/templates.py +0 -0
- {promptlayer-1.0.33 → promptlayer-1.0.35}/promptlayer/track/__init__.py +0 -0
- {promptlayer-1.0.33 → promptlayer-1.0.35}/promptlayer/track/track.py +0 -0
- {promptlayer-1.0.33 → promptlayer-1.0.35}/promptlayer/types/__init__.py +0 -0
- {promptlayer-1.0.33 → promptlayer-1.0.35}/promptlayer/types/request_log.py +0 -0
|
@@ -117,6 +117,13 @@ class PlaceholderMessage(TypedDict, total=False):
|
|
|
117
117
|
name: str
|
|
118
118
|
|
|
119
119
|
|
|
120
|
+
class DeveloperMessage(TypedDict, total=False):
|
|
121
|
+
role: Literal["developer"]
|
|
122
|
+
input_variables: List[str]
|
|
123
|
+
template_format: TemplateFormat
|
|
124
|
+
content: Sequence[Content]
|
|
125
|
+
|
|
126
|
+
|
|
120
127
|
class ChatFunctionCall(TypedDict, total=False):
|
|
121
128
|
name: str
|
|
122
129
|
|
|
@@ -135,6 +142,7 @@ Message = Union[
|
|
|
135
142
|
FunctionMessage,
|
|
136
143
|
ToolMessage,
|
|
137
144
|
PlaceholderMessage,
|
|
145
|
+
DeveloperMessage,
|
|
138
146
|
]
|
|
139
147
|
|
|
140
148
|
|
|
@@ -1642,9 +1642,10 @@ def mistral_request(
|
|
|
1642
1642
|
|
|
1643
1643
|
client = Mistral(api_key=os.environ.get("MISTRAL_API_KEY"))
|
|
1644
1644
|
if "stream" in kwargs and kwargs["stream"]:
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1645
|
+
kwargs.pop("stream")
|
|
1646
|
+
return client.chat.stream(**kwargs)
|
|
1647
|
+
if "stream" in kwargs:
|
|
1648
|
+
kwargs.pop("stream")
|
|
1648
1649
|
return client.chat.complete(**kwargs)
|
|
1649
1650
|
|
|
1650
1651
|
|
|
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
|