inferencesh 0.4.23__tar.gz → 0.4.24__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 inferencesh might be problematic. Click here for more details.
- {inferencesh-0.4.23/src/inferencesh.egg-info → inferencesh-0.4.24}/PKG-INFO +1 -1
- {inferencesh-0.4.23 → inferencesh-0.4.24}/pyproject.toml +1 -1
- {inferencesh-0.4.23 → inferencesh-0.4.24}/src/inferencesh/models/llm.py +2 -4
- {inferencesh-0.4.23 → inferencesh-0.4.24/src/inferencesh.egg-info}/PKG-INFO +1 -1
- {inferencesh-0.4.23 → inferencesh-0.4.24}/LICENSE +0 -0
- {inferencesh-0.4.23 → inferencesh-0.4.24}/README.md +0 -0
- {inferencesh-0.4.23 → inferencesh-0.4.24}/setup.cfg +0 -0
- {inferencesh-0.4.23 → inferencesh-0.4.24}/src/inferencesh/__init__.py +0 -0
- {inferencesh-0.4.23 → inferencesh-0.4.24}/src/inferencesh/client.py +0 -0
- {inferencesh-0.4.23 → inferencesh-0.4.24}/src/inferencesh/models/__init__.py +0 -0
- {inferencesh-0.4.23 → inferencesh-0.4.24}/src/inferencesh/models/base.py +0 -0
- {inferencesh-0.4.23 → inferencesh-0.4.24}/src/inferencesh/models/file.py +0 -0
- {inferencesh-0.4.23 → inferencesh-0.4.24}/src/inferencesh/utils/__init__.py +0 -0
- {inferencesh-0.4.23 → inferencesh-0.4.24}/src/inferencesh/utils/download.py +0 -0
- {inferencesh-0.4.23 → inferencesh-0.4.24}/src/inferencesh/utils/storage.py +0 -0
- {inferencesh-0.4.23 → inferencesh-0.4.24}/src/inferencesh.egg-info/SOURCES.txt +0 -0
- {inferencesh-0.4.23 → inferencesh-0.4.24}/src/inferencesh.egg-info/dependency_links.txt +0 -0
- {inferencesh-0.4.23 → inferencesh-0.4.24}/src/inferencesh.egg-info/entry_points.txt +0 -0
- {inferencesh-0.4.23 → inferencesh-0.4.24}/src/inferencesh.egg-info/requires.txt +0 -0
- {inferencesh-0.4.23 → inferencesh-0.4.24}/src/inferencesh.egg-info/top_level.txt +0 -0
- {inferencesh-0.4.23 → inferencesh-0.4.24}/tests/test_client.py +0 -0
- {inferencesh-0.4.23 → inferencesh-0.4.24}/tests/test_sdk.py +0 -0
|
@@ -217,12 +217,10 @@ def build_messages(
|
|
|
217
217
|
def render_message(msg: ContextMessage, allow_multipart: bool) -> str | List[dict]:
|
|
218
218
|
parts = []
|
|
219
219
|
text = transform_user_message(msg.text) if transform_user_message and msg.role == ContextMessageRole.USER else msg.text
|
|
220
|
-
if msg.tool_calls:
|
|
221
|
-
for tool_call in msg.tool_calls:
|
|
222
|
-
tool_call_string = json.dumps(tool_call)
|
|
223
|
-
text += f"\n\nTool call: {tool_call_string}"
|
|
224
220
|
if text:
|
|
225
221
|
parts.append({"type": "text", "text": text})
|
|
222
|
+
else:
|
|
223
|
+
parts.append({"type": "text", "text": ""})
|
|
226
224
|
if msg.image:
|
|
227
225
|
if msg.image.path:
|
|
228
226
|
image_data_uri = image_to_base64_data_uri(msg.image.path)
|
|
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
|
|
File without changes
|
|
File without changes
|