Repository navigation
Conversation
This was referenced Oct 25, 2026
Merge dev ce53f18 and adapt the retained regression from LLM.request to ai.request. Preserve the original case-insensitive media.kind check and all nine MIME/source cases. AI-assisted implementation and independent AI review; no human review claimed. Validation on Linux, Bun 1.4.4, current frozen lockfile, install scripts disabled: AI suite 2055 pass / 28 skip / 0 fail; independent Cohere/media/media-input 420 pass; AI Bun and official TypeScript checks, focused formatting and root check pass. Baseline regression before the production fix: 14 pass / 6 fail. No live Cohere API or Windows E2E execution.
This branch has not been deployed
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.
Issue for this PR
Closes #58937
Type of change
What does this PR do?
Use Media's existing case-insensitive image classification in the native Cohere route instead of matching the raw MIME prefix. This accepts IMAGE/PNG and Image/Png without changing serialization or accepting non-image media.
AI disclosure: prepared and independently reviewed by AI agents; no human review is claimed. Kept as a draft for maintainer review.
How did you verify your code works?
On dev 32b5701 with Bun 1.4.4:
bun run checkpass (root check with telemetry disabled and writable temporary HOME).No live Cohere API calls or new cassette recordings; these verify request compilation and existing replay tests, not provider-side image recognition. Root lint retains pre-existing warnings.
Screenshots / recordings
Not applicable.
Checklist