Skip to content

Commit 3516df5

Browse files
Fixed a bug for "detail" attribute in input image
1 parent f976349 commit 3516df5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agents/models/chatcmpl_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def extract_all_content(
234234
type="image_url",
235235
image_url={
236236
"url": casted_image_param["image_url"],
237-
"detail": casted_image_param["detail"],
237+
"detail": casted_image_param.get("detail", None),
238238
},
239239
)
240240
)

0 commit comments

Comments
 (0)