Croway opened a new pull request, #23971: URL: https://github.com/apache/camel/pull/23971
## Description Backport of #23970 to `camel-4.18.x` (fix version 4.18.3). Fixes [CAMEL-23739](https://issues.apache.org/jira/browse/CAMEL-23739). The `chat-completion` operation only accepted `java.io.File` bodies for vision/image input. Bodies produced by file-based and cloud storage consumers (`WrappedFile`/`GenericFile` from file/FTP/SFTP, `byte[]`/`InputStream` from AWS S3, Azure Blob, etc.) fell through to text handling, corrupting binary image content. MIME detection also relied solely on `Files.probeContentType()`, which returns `null` on macOS for many paths. Differences from the main PR: - No upgrade guide entry (kept on `main` per convention) - Test uses `camel-test-junit5` (4.18.x does not have `camel-test-junit6`) - Conflict-resolved around features not present in 4.18.x (no `stripThinking` header) _Claude Code on behalf of Federico Mariani_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
