Skip to content

Commit 728cf04

Browse files
committed
llm function calling v0
1 parent 8e58e5e commit 728cf04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inferencesh/models/llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def render_message(msg: ContextMessage, allow_multipart: bool) -> str | List[dic
192192
raise ValueError("Image content requires multipart support")
193193

194194
multipart = any(m.image for m in input_data.context) or input_data.image is not None
195-
messages = [{"role": "system", "content": input_data.system_prompt}]
195+
messages = [{"role": "system", "content": input_data.system_prompt}] if input_data.system_prompt is not None and input_data.system_prompt != "" else []
196196

197197
for msg in input_data.context:
198198
messages.append({

0 commit comments

Comments
 (0)