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 31bd3ac commit a4f7204Copy full SHA for a4f7204
src/agents/models/chatcmpl_converter.py
@@ -271,11 +271,16 @@ def extract_all_content(
271
raise UserError(
272
f"Only file_data is supported for input_file {casted_file_param}"
273
)
274
+ if "filename" not in casted_file_param or not casted_file_param["filename"]:
275
+ raise UserError(
276
+ f"filename must be provided for input_file {casted_file_param}"
277
+ )
278
out.append(
279
File(
280
type="file",
281
file=FileFile(
282
file_data=casted_file_param["file_data"],
283
+ filename=casted_file_param["filename"],
284
),
285
286
0 commit comments