You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "Croway (via GitHub)" <gi...@apache.org> on 2026/06/11 18:09:17 UTC
[PR] CAMEL-23739: camel-openai - support WrappedFile, byte[] and InputStream bodies for vision models (4.18.x backport) [camel]
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-23739: camel-openai - support WrappedFile, byte[] and InputStream bodies for vision models (4.18.x backport) [camel]
Posted by "Croway (via GitHub)" <gi...@apache.org>.
Croway merged PR #23971:
URL: https://github.com/apache/camel/pull/23971
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org