Urmila Unni created CAMEL-26873:
-----------------------------------

             Summary:   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


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)

Reply via email to