Repository navigation
feat(vision): a cloudTask option asks the cloud tier for the text alone - #301
Conversation
The cloud tier always asked its model to describe the image, and its answer, at a fixed confidence of 0.95, became the result's text over every local tier. A call that wanted text, such as a page of handwriting read with TrOCR and the cloud tier, got a description in place of the transcription. process() takes cloudTask: 'describe' (the default, unchanged) or 'transcribe', which asks for the text alone, exactly as written, in reading order. Another value is refused before any tier runs. The multimodal indexer keeps the description it embeds.
Reviewer's GuideAdds an optional Sequence diagram for vision cloud task selectionsequenceDiagram
participant Caller
participant VisionPipeline
participant LocalTiers
participant CloudProvider
Caller->>VisionPipeline: process(image, cloudTask)
VisionPipeline->>VisionPipeline: validate cloudTask
alt cloudTask is invalid
VisionPipeline-->>Caller: throw Error
else cloudTask is describe or transcribe
VisionPipeline->>LocalTiers: run configured local tiers
VisionPipeline->>CloudProvider: generateText(image, selected prompt)
alt cloudTask is transcribe
CloudProvider-->>VisionPipeline: text only in reading order
else cloudTask is describe
CloudProvider-->>VisionPipeline: image description with visible text
end
VisionPipeline-->>Caller: VisionResult.text from cloud tier
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Warning Review limit reached
This review includes 7 billable files and costs up to $1.75.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 2 minutes for your next included review. View limit details
Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
PR Summary by QodoAdd an opt-in cloud transcription task to the vision pipeline
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Code Review by Qodo
1.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0facc88a4f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…Task is a root export The transcription prompt asks the model for nothing when the image shows no text, and that empty answer, at the cloud tier's fixed 0.95, would replace the text a local tier had read. An answer with no text in it now has confidence 0, so the local text stands, and a cloud-only read of an image without text returns empty text. VisionCloudTask is exported from the package root with the other vision types.
## [0.13.50](v0.13.49...v0.13.50) (2026-10-11) ### feat * **vision:** a cloudTask option asks the cloud tier for the text alone (#301) ([2552104](2552104)) ### fix * **deps:** bump @framers/* deps to latest published versions (#303) ([6278c44](6278c44)) ### ci * weekly pull request that bumps the @framers/* dependencies (#266) ([a9cad59](a9cad59))
Summary
The cloud vision tier always sends one prompt, "Describe this image in detail. Extract all visible text exactly as written. Identify the type of content ...", and its answer has a fixed confidence of 0.95, so it becomes
result.textover every local tier that ran. A call that wants text gets a description. A Codex review of agentos-extensions#140 found the case that matters:vision_pipeline'shandwritingmode at maxTier 3 had listed the cloud tier beside TrOCR (a single-line model, so a page of handwriting comes back as a few words), and the description replaced the transcription. The pack took the route out again; with this option it can put it back.process(image, { cloudTask }):'describe'(the default, the prompt as it is) or'transcribe', which asks for the text alone, exactly as written, in reading order with its line breaks, and nothing when the image shows no text. Both of_process's cloud calls (thecloud-onlypath and tier 3) pass it.cloudTask must be 'describe' or 'transcribe'.VisionCloudTaskis exported;VisionResult.text's comment anddocs/features/VISION_PIPELINE.md(the quick start, the tier table, a paragraph with the handwriting example, the result shape) say what each task gives.process(image).textand keeps the description.Linked issues
Follow-up to framerslab/agentos-extensions#140 (Codex P2 on its first revision).
Type of change
How this was verified
CI on this pull request.
createVisionPipeline.gemini.e2e.test.ts, through the realgenerateText()and Gemini provider with onlyfetchstubbed: the default call's text part starts "Describe this image in detail.", thecloudTask: 'transcribe'call's starts "Transcribe all the text in this image exactly as written" and carries no description prompt.VisionPipeline.test.ts: the prompt for each task;tiers: ['handwriting', 'cloud-vision']withforceCategory: 'handwritten'and'transcribe'runs both tiers and returns the transcription; an unknown task is refused with no OCR and no cloud call.Migration notes
None: the default is the current prompt.
Checklist
!before the colon for a change that breaks users (feat!:orfeat(api)!:).Summary by Sourcery
Support text-focused cloud vision processing while preserving the existing description behavior by default.
New Features:
cloudTaskoption that lets vision processing request either the existing image description or text-only transcription from the cloud tier.Bug Fixes:
Enhancements:
VisionCloudTasktype and document the cloud task behavior and handwriting transcription use case.Documentation:
Tests: