oscerd commented on PR #28971:
URL: https://github.com/apache/camel/pull/28971#issuecomment-6588498234
Thanks Claus. I agree that `{a=b}` is rarely what a route means to send to a
model. I would do it in a follow-up rather than here, because the same applies
to textGeneration, deploymentGenerate, tokenize and detect, which document the
`toString()` today, and the change makes such a body fail where it was sent
before, so it needs an upgrade-guide entry. My preference is to fail with a
clear message for a Map or a POJO body, saying to marshal it first (for example
with `marshal().json()`) or to give the text, rather than have the component
pick a JSON format; text, bytes, streams, files, the List bodies and a
`ChatMessage` would stay as they are. I will propose a follow-up issue for it.
_Claude Code on behalf of Andrea Cosentino (oscerd)_
--
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]