fix(mistral): restore mistral configs for v2 version#3138
Merged
icecrasher321 merged 1 commit intostagingfrom Feb 5, 2026
Merged
fix(mistral): restore mistral configs for v2 version#3138icecrasher321 merged 1 commit intostagingfrom
icecrasher321 merged 1 commit intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile OverviewGreptile SummaryThis PR restores backwards compatibility for the Mistral v2 block configuration that was changed in a previous update. The key changes:
The approach maintains compatibility for existing v2 workflows while steering new users toward v3 with better file normalization. Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant V2Block as MistralParseV2Block
participant V3Block as MistralParseV3Block
participant V2Tool as mistralParserV2Tool
participant V3Tool as mistralParserV3Tool
participant API as Mistral API
Note over V2Block,V3Block: Backwards Compatibility Approach
alt V2 Block (Hidden, Legacy)
User->>V2Block: fileUpload (object) OR filePath (string)
V2Block->>V2Block: Smart handling: typeof check
alt Object Input
V2Block->>V2Tool: parameters.fileUpload = documentInput
else String Input
V2Block->>V2Tool: parameters.filePath = documentInput
end
V2Tool->>V2Tool: Reuses V1 tool logic (flexible params)
V2Tool->>API: POST /api/tools/mistral/parse
API-->>V2Tool: OCR Result (raw Mistral format)
V2Tool-->>V2Block: pages, model, usage_info, document_annotation
V2Block-->>User: Result
end
alt V3 Block (Visible, New Pattern)
User->>V3Block: fileUpload OR fileReference
V3Block->>V3Block: normalizeFileInput(params, {single: true})
V3Block->>V3Tool: parameters.file = UserFile (normalized)
V3Tool->>V3Tool: Validates UserFile object
V3Tool->>API: POST /api/tools/mistral/parse
API-->>V3Tool: OCR Result (raw Mistral format)
V3Tool-->>V3Block: pages, model, usage_info, document_annotation
V3Block-->>User: Result
end
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Don't break backwards compat for v2 mistral block.
Type of Change
Testing
Tested manually
Checklist
- Code follows project style guidelines
- Self-reviewed my changes
- Tests added/updated and passing
- No new warnings introduced
- I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)
Cursor Bugbot found 1 potential issue for commit 0db8777