How to specify file name when uploading a file with Python API

What is the “file section”?

You can write your own file browser and get the file objects, to present as you wish:


{
  "id": "file-abc123",
  "object": "file",
  "bytes": 120000,
  "created_at": 1677610602,
  "filename": "salesOverview.pdf",
  "purpose": "assistants",
}

There is no other metadata that you can add, except by tracking with your own database.

You could thus make your own “assistants file attacher” interface or such.