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 2f84e5d commit b4ed05eCopy full SHA for b4ed05e
python/semantic_kernel/agents/open_ai/responses_agent_thread_actions.py
@@ -699,7 +699,9 @@ def _prepare_chat_history_for_request(
699
image_url = str(content.uri)
700
701
if not image_url:
702
- ValueError("ImageContent must have either a data_uri or uri set to be used in the request.")
+ raise ValueError(
703
+ "ImageContent must have either a data_uri or uri set to be used in the request."
704
+ )
705
706
contents.append({"type": "input_image", "image_url": image_url})
707
response_inputs.append({"role": original_role, "content": contents})
0 commit comments