remove image file requirement for uploadFile (#248)

This commit is contained in:
Drew
2026-03-10 10:16:34 -07:00
committed by GitHub
parent ce2535c009
commit 392fbd84f3
@@ -26,7 +26,7 @@ Load this reference when a task needs ChatGPT-only widget features, when transla
- `window.openai.requestDisplayMode({ mode })`: request `inline`, `pip`, or `fullscreen`
- `window.openai.requestModal({ params, template? })`: open a host-owned modal
- `window.openai.requestClose()`: ask ChatGPT to close the widget
- `window.openai.uploadFile(file)`: upload an image file from the widget
- `window.openai.uploadFile(file)`: upload a file from the widget
- `window.openai.getFileDownloadUrl({ fileId })`: resolve a temporary download URL
- `window.openai.notifyIntrinsicHeight(...)`: report dynamic height changes
- `window.openai.setOpenInAppUrl({ href })`: override the fullscreen punch-out target