Conversation
Regenerate the low-level SDK from API spec v0.7.8, which adds image as a supported media type: - `media_type` enum gains `image`; `media_info` width/height cover images - `POST /files` accepts video, audio, or image uploads - describe/extract `url` accept public direct image URLs Update the high-level wrapper docstrings to reflect image support (files.upload, files.sync_from_url, describe.create/run, extract.create/run). Images are processed at the file level only (no segmentation).
|
Important Review skippedToo many files! This PR contains 277 files, which is 127 over the limit of 150. To get a review, narrow the scope: Upgrade to a paid plan to raise the limit. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (277)
You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Syncs the SDK to API spec v0.7.8, which adds image as a supported media type. The change is additive — no new endpoints or parameters.
media_typeenum gainsimage;media_infowidth/height now cover imagesPOST /filesaccepts video, audio, or image uploadsdescribe/extracturlaccept public direct image URLsfiles.upload,files.sync_from_url,describe.create/run,extract.create/run.Images are processed at the file level only (no segmentation).
Testing
Verified end-to-end against a live account: image upload (returns
media_type=imagewith width/height), and describe/extract over both an uploadedcloudglue://URI and a public direct image URL;sync_from_urlalso materializes a direct image URL.Note
Low Risk
Additive spec sync and docstring updates with no runtime logic changes in the high-level client beyond generated SDK types.
Overview
Syncs the Python client to OpenAPI v0.7.8 and bumps the package to 0.7.15, adding image as a first-class media type alongside video and audio.
The regenerated SDK reflects image on
File.media_type, widensFileMediaInfofor image dimensions, and updates upload/describe/extract request docs to allow image uploads,cloudglue://image URIs, and public JPEG/PNG/WebP URLs. High-level wrappers (files.upload,files.sync_from_url,describe.create/run,extract.create/run) now document that images are handled at file level only—segmentation and segment-thumbnail options do not apply.No new endpoints or client parameters; behavior is additive documentation and generated types aligned with the backend spec.
Reviewed by Cursor Bugbot for commit d94b134. Bugbot is set up for automated code reviews on this repo. Configure here.