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 8e58e5e commit 728cf04Copy full SHA for 728cf04
src/inferencesh/models/llm.py
@@ -192,7 +192,7 @@ def render_message(msg: ContextMessage, allow_multipart: bool) -> str | List[dic
192
raise ValueError("Image content requires multipart support")
193
194
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}]
+ messages = [{"role": "system", "content": input_data.system_prompt}] if input_data.system_prompt is not None and input_data.system_prompt != "" else []
196
197
for msg in input_data.context:
198
messages.append({
0 commit comments