urunni88 opened a new pull request, #29794:
URL: https://github.com/apache/camel/pull/29794

   # Description
   
   [CAMEL-26873](https://issues.apache.org/jira/browse/CAMEL-26873), follow-up 
of [CAMEL-26514](https://issues.apache.org/jira/browse/CAMEL-26514) (#29654): 
the producer now calls `EmbeddingModel.embed(EmbeddingRequest)`, and an 
`EmbeddingResponse` has no finish reason, so the 
`CamelLangChain4jEmbeddingsFinishReason` header is no longer set. It was still 
declared with `@Metadata`, so the catalog and the component doc listed a header 
the producer never sets.
   
   `LangChain4jEmbeddingsHeaders.FINISH_REASON` is now `@Deprecated`, with a 
`deprecationNote` in `@Metadata`. The constant is kept, so code that references 
it still compiles, and the producer still removes a stale value of it.
   
   Generated files: the component JSON was regenerated and copied to the 
catalog. The Endpoint DSL (`LangChain4jEmbeddingsEndpointBuilderFactory`) needs 
a build of `camel-allcomponents` to regenerate, so I updated it by hand to 
match the generator's output for other deprecated headers (the description with 
the deprecation note in the javadoc, wrapped at 80 columns, and `@Deprecated` 
on the method), as in `AWS2S3VectorsEndpointBuilderFactory`.
   
   No behavior change, so no upgrade guide entry: the 4.24 guide already says 
the header is no longer set. The tests of camel-langchain4j-embeddings pass.
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   
   - [x] I have run `mvn clean install -DskipTests` locally from root folder 
and I have committed all auto-generated changes.
   
   # AI-assisted contributions
   
   - [x] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used.
   
   This PR was prepared with the help of Claude (Anthropic), credited with a 
`Co-authored-by` trailer in the commit.


-- 
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]

Reply via email to