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 101042a commit 57fa97dCopy full SHA for 57fa97d
src/inferencesh/models/llm.py
@@ -255,7 +255,8 @@ def merge_tool_calls(messages: List[ContextMessage]) -> List[Dict[str, Any]]:
255
user_input_image = input_data.image
256
multipart = multipart or input_data.image is not None
257
258
- user_msg = ContextMessage(role=ContextMessageRole.USER, text=user_input_text, image=user_input_image)
+ input_role = input_data.role if hasattr(input_data, "role") else ContextMessageRole.USER
259
+ user_msg = ContextMessage(role=input_role, text=user_input_text, image=user_input_image)
260
261
input_data.context.append(user_msg)
262
0 commit comments