Add custom to file types (#11966)

Co-authored-by: yagiyuki <yagiyuki>
This commit is contained in:
yagiyuki
2024-12-23 14:53:46 +09:00
committed by GitHub
parent 02a7ae15f9
commit 4584eb3058
6 changed files with 6 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ Chat applications support session persistence, allowing previous chat history to
- `image` ('JPG', 'JPEG', 'PNG', 'GIF', 'WEBP', 'SVG')
- `audio` ('MP3', 'M4A', 'WAV', 'WEBM', 'AMR')
- `video` ('MP4', 'MOV', 'MPEG', 'MPGA')
- `custom` (Other file types)
- `transfer_method` (string) Transfer method, `remote_url` for image URL / `local_file` for file upload
- `url` (string) Image URL (when the transfer method is `remote_url`)
- `upload_file_id` (string) Uploaded file ID, which must be obtained by uploading through the File Upload API in advance (when the transfer method is `local_file`)