atiaomar1978-hub opened a new pull request, #24962:
URL: https://github.com/apache/camel/pull/24962

   ## Summary
   
   Fixes [CAMEL-23946](https://issues.apache.org/jira/browse/CAMEL-23946): the 
`safeSearch` endpoint option on `camel-langchain4j-web-search` was documented 
and accepted on `LangChain4jWebSearchConfiguration` but never passed to the 
LangChain4j `WebSearchRequest` builder. Because `WebSearchRequest` defaults 
`safeSearch` to `true`, configuring `safeSearch=false` on the endpoint had no 
effect.
   
   - Add `.safeSearch(getEndpoint().getConfiguration().getSafeSearch())` to the 
request builder in `LangChain4jWebSearchProducer`
   - Add `LangChain4jWebSearchSafeSearchTest` with a capturing stub 
`WebSearchEngine` covering `safeSearch=false`, `safeSearch=true`, and 
propagation alongside other parameters
   - Document the behavior fix in the 4.22 upgrade guide
   
   ## Test plan
   
   - [x] `LangChain4jWebSearchSafeSearchTest` (3 tests): safeSearch false/true 
propagation and combined with language/geoLocation/maxResults
   
   ---
   _Authored by Cursor Agent (Opus 4.8) on behalf of @atiaomar1978-hub._


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