bamaer opened a new pull request, #8341: URL: https://github.com/apache/hop/pull/8341
…j 1.20.0 Move from langchain4j 0.29.1 to 1.20.0: ChatLanguageModel becomes ChatModel, generate() becomes chat() returning ChatResponse, and the removed ChatMessage.text() is replaced by a helper that collects the text parts of a multimodal message. OpenAI proxy support moves to the JDK http client builder, and the free format string of Ollama and Mistral is mapped onto a ResponseFormat. The Hugging Face integration no longer uses langchain4j-hugging-face, a beta artifact that upstream deprecated for removal. The four vendored classes under dev.langchain4j are replaced by a client in the plugin's own package, calling the API over the langchain4j http client. This drops retrofit, okhttp-sse, gson and the abandoned openai4j from the distribution. Api keys and access tokens are stored as passwords and masked in the dialog, the way Hop stores other secrets. Values holding variables are still written as they stand. The openAiApiKey field default lost a stray brace it carried since the transform was contributed. Adds a stub server test covering all five providers and an Ollama integration test project, disabled by default because it pulls a model. **Please** add a meaningful description for your change here ------------------------ Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily: - [x] Run `mvn clean install apache-rat:check` to make sure basic checks pass. A more thorough check will be performed on your pull request automatically. - [x] If you have a group of commits related to the same change, please squash your commits into one and force push your branch using `git rebase -i`. - [x] Mention the appropriate issue in your description (for example: `addresses #123`), if applicable. To make clear that you license your contribution under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0) you have to acknowledge this by using the following check-box. - [x] I hereby declare this contribution to be licensed under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0) - [ ] In any other case, please file an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf). -- 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]
