Skip to content

Commit 6ca8952

Browse files
committed
fix: no filename in param
1 parent 37d3553 commit 6ca8952

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

veadk/models/ark_llm.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ def _file_data_to_content_param(
173173
) -> ResponseInputContentParam:
174174
file_uri = part.file_data.file_uri
175175
mime_type = part.file_data.mime_type
176-
display_name = part.file_data.display_name
177176
fps = 1.0
178177
if getattr(part, "video_metadata", None):
179178
video_metadata = part.video_metadata
@@ -202,8 +201,6 @@ def _file_data_to_content_param(
202201
)
203202
# file
204203
param = {"file_id": value} if is_file_id else {"file_url": value}
205-
if display_name:
206-
param["filename"] = display_name
207204
return ResponseInputFileParam(
208205
type="input_file",
209206
**param,
@@ -239,8 +236,6 @@ def _inline_data_to_content_param(part: types.Part) -> ResponseInputContentParam
239236
)
240237

241238
file_param: Dict[str, Any] = {"file_data": data_uri}
242-
if getattr(part.inline_data, "display_name", None):
243-
file_param["filename"] = part.inline_data.display_name
244239
return ResponseInputFileParam(
245240
type="input_file",
246241
**file_param,

0 commit comments

Comments
 (0)