{"command":{"effect":"write","timeoutSeconds":120,"inputSchema":{"type":"object","description":"Creates an intermediate [Upload](https://developers.openai.com/api/reference/resources/uploads) object\nthat you can add [Parts](https://developers.openai.com/api/reference/resources/uploads/subresources/parts) to.\nCurrently, an Upload can accept at most 8 GB in total and expires after an\nhour after you create it.\n\nOnce you complete the Upload, we will create a\n[File](https://developers.openai.com/api/reference/resources/files) object that contains all the parts\nyou uploaded. This File is usable in the rest of our platform as a regular\nFile object.\n\nFor certain `purpose` values, the correct `mime_type` must be specified.\nPlease refer to documentation for the\n[supported MIME types for your use case](https://developers.openai.com/api/docs/guides/tools-file-search#supported-files).\n\nFor guidance on the proper filename extensions for each purpose, please\nfollow the documentation on [creating a\nFile](https://developers.openai.com/api/reference/resources/files/methods/create).\n\nReturns the Upload object with status `pending`.\n","properties":{"body":{"$ref":"#/definitions/CreateUploadRequest"}},"required":["body"],"additionalProperties":false,"definitions":{"CreateUploadRequest":{"type":"object","additionalProperties":false,"properties":{"filename":{"description":"The name of the file to upload.\n","type":"string"},"purpose":{"description":"The intended purpose of the uploaded file.\n\nSee the [documentation on File\npurposes](https://developers.openai.com/api/reference/resources/files/methods/create#%28resource%29%20files%20%3E%20%28method%29%20create%20%3E%20%28params%29%200%20%3E%20%28param%29%20purpose%20%3E%20%28schema%29).\n","type":"string","enum":["assistants","batch","fine-tune","vision"]},"bytes":{"description":"The number of bytes in the file you are uploading.\n","type":"integer"},"mime_type":{"description":"The MIME type of the file.\n\n\nThis must fall within the supported MIME types for your file purpose. See\nthe supported MIME types for assistants and vision.\n","type":"string"},"expires_after":{"$ref":"#/definitions/FileExpirationAfter"}},"required":["filename","purpose","bytes","mime_type"]},"FileExpirationAfter":{"type":"object","title":"File expiration policy","description":"The expiration policy for a file. By default, files with `purpose=batch` expire after 30 days and all other files are persisted until they are manually deleted.","properties":{"anchor":{"description":"Anchor timestamp after which the expiration policy applies. Supported anchors: `created_at`.","type":"string","enum":["created_at"]},"seconds":{"description":"The number of seconds after the anchor time that the file will expire. Must be between 3600 (1 hour) and 2592000 (30 days).","type":"integer","minimum":3600,"maximum":2592000}},"required":["anchor","seconds"]}}},"name":"Create upload","id":"openai.createupload","example":{"body":{"filename":"example","purpose":"assistants","bytes":1,"mime_type":"example"}},"maxRequests":1,"summary":false}}