We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34e7fa6 commit df891ffCopy full SHA for df891ff
src/inferencesh/models/llm.py
@@ -217,12 +217,10 @@ def build_messages(
217
def render_message(msg: ContextMessage, allow_multipart: bool) -> str | List[dict]:
218
parts = []
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
if text:
225
parts.append({"type": "text", "text": text})
+ else:
+ parts.append({"type": "text", "text": ""})
226
if msg.image:
227
if msg.image.path:
228
image_data_uri = image_to_base64_data_uri(msg.image.path)
0 commit comments