[
https://issues.apache.org/jira/browse/CAMEL-24519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18108645#comment-18108645
]
Andrea Cosentino commented on CAMEL-24519:
------------------------------------------
Fixed via PR https://github.com/apache/camel/pull/25787
_Claude Code on behalf of oscerd_
> camel-ibm-watsonx-ai: the ModelId header is an output but its metadata
> describes it as an input
> -----------------------------------------------------------------------------------------------
>
> Key: CAMEL-24519
> URL: https://issues.apache.org/jira/browse/CAMEL-24519
> Project: Camel
> Issue Type: Bug
> Reporter: Andrea Cosentino
> Assignee: Andrea Cosentino
> Priority: Major
> Fix For: 4.23.0
>
>
> The CamelIbmWatsonxAiModelId header (WatsonxAiConstants.MODEL_ID) is
> documented as "The model ID to use", implying it is an input that selects the
> model per exchange. In practice the model is fixed at service-creation time
> from the modelId configuration/URI option, and the header is only ever
> WRITTEN to the response (headers.put(MODEL_ID, response.modelId()) in the
> embedding/rerank/forecast/deployment/tokenization handlers) to report the
> model that was used. It is never read as an input. Relabel the header
> description to reflect that it reports the model used, so the generated
> component documentation is accurate.\n\nAffected:
> components/camel-ibm/camel-ibm-watsonx-ai
> (org.apache.camel.component.ibm.watsonx.ai.WatsonxAiConstants.MODEL_ID).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)