You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored
feat: image input on chatgpt.ask.ask and gemini.ask.ask (0.43.0) (#34)
Pass `image_url` and the model looks at the picture and answers about it —
JPEG, PNG, GIF, WEBP, BMP, up to 5 MB. An image ask is slower than a text
one: the model uploads the picture before it starts answering, so allow
90-150 s rather than the text path's 20-70 s.
Both ask responses gain `images: MediaItem[]` — the pictures the answer
itself displayed, favicon-sized assets excluded.
Neither endpoint will GENERATE an image. Anonymous chatgpt.com and
gemini.google.com both gate image generation behind a login (their own
logged-out pages say so), so `images` is only ever what the answer showed,
never something the model drew. The doc comments say this outright rather
than leaving a caller to discover it.
`image_url` is optional and the base client already drops undefined query
params, so an existing call is byte-identical on the wire.
Requested in SB-001078.
Claude-Session: https://claude.ai/code/session_01JdMkgmhJ1o6yc7MT3BuCvW
Co-authored-by: kasparasizi1 <132673909+kasparasizi1@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
0 commit comments