[
https://issues.apache.org/jira/browse/CAMEL-23464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Cosentino updated CAMEL-23464:
-------------------------------------
Fix Version/s: 4.21.0
> Camel-AWS-Bedrock: BedrockAgentConfiguration.modelId is required but never
> used by ingestion operations
> -------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-23464
> URL: https://issues.apache.org/jira/browse/CAMEL-23464
> Project: Camel
> Issue Type: Bug
> Reporter: Andrea Cosentino
> Assignee: Andrea Cosentino
> Priority: Minor
> Fix For: 4.21.0
>
>
> {{BedrockAgentConfiguration.modelId}} is declared {{required=true}} and lists
> three retired Anthropic Claude models in its enum:
> {code:java}
> @UriParam(enums =
> "anthropic.claude-instant-v1,anthropic.claude-v2,anthropic.claude-v2:1")
> @Metadata(required = true)
> private String modelId;
> {code}
> However, none of the operations served by {{BedrockAgentProducer}}
> ({{startIngestionJob}}, {{listIngestionJobs}}, {{getIngestionJob}}) read
> {{modelId}}. Forcing users to set a stale, retired model ID for an unrelated
> operation is misleading and will cause endpoint validation errors with no
> functional benefit.
> *Files:*
> *
> {{components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agent/BedrockAgentConfiguration.java:43-48}}
> *
> {{components/camel-aws/camel-aws-bedrock/src/main/java/org/apache/camel/component/aws2/bedrock/agent/BedrockAgentProducer.java}}
> *Suggested fix:*
> * Drop the {{modelId}} field from {{BedrockAgentConfiguration}} (or at
> minimum drop {{required=true}} and the stale enum).
> ----
> _Filed by Claude Code on behalf of Andrea Cosentino._
--
This message was sent by Atlassian Jira
(v8.20.10#820010)