[
https://issues.apache.org/jira/browse/CAMEL-26873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18143535#comment-18143535
]
Urmila Unni commented on CAMEL-26873:
-------------------------------------
I'd like to work on this one, after PR #29654 for CAMEL-26514 is merged.
> camel-langchain4j-embeddings - deprecate the
> CamelLangChain4jEmbeddingsFinishReason header
> --------------------------------------------------------------------------------------------
>
> Key: CAMEL-26873
> URL: https://issues.apache.org/jira/browse/CAMEL-26873
> Project: Camel
> Issue Type: Improvement
> Reporter: Urmila Unni
> Priority: Minor
>
> Follow-up of CAMEL-26514 (PR #29654).
> The producer now calls EmbeddingModel.embed(EmbeddingRequest), and an
> EmbeddingResponse has no finish reason, so the
> CamelLangChain4jEmbeddingsFinishReason header is never set anymore.
> LangChain4jEmbeddingsHeaders.FINISH_REASON is still declared with @Metadata,
> so the catalog and the component doc still list a header the producer never
> sets.
> Proposed: mark the constant @Deprecated with a deprecation note in @Metadata,
> and regenerate the component JSON, the catalog copy and the Endpoint DSL. The
> constant is kept so code that references it still compiles.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)