Bump langchain to 1.3#161
Merged
Merged
Conversation
….0-beta9 for local-ai) and added
langchain4j-http-client-jdk.
This upgrade required significant refactoring to adapt to the new LangChain4j API, including:
- Migrating from ChatLanguageModel to ChatModel and StreamingChatLanguageModel to StreamingChatModel.
- Updating chat generation methods from generate to chat.
- Adjusting JeddictStreamHandler to use StreamingChatResponseHandler and its new methods
(onPartialResponse, onCompleteResponse).
- Modifying error handling for chat model responses.
- Refactoring maxRetries handling in chat model builders.
jGauravGupta
approved these changes
Aug 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgraded LangChain4j dependencies in pom.xml to version 1.3.0 (or 1.3.0-beta9 for local-ai) and added langchain4j-http-client-jdk. Although the effort to adapt the current codebase to langchain 1.3 was quite minimal, I think it is needed as langchain has done major architectural changes in 1.x and having the latest version is a much more solid basis for further improvements.
This upgrade required significant refactoring to adapt to the new LangChain4j API, including:
(onPartialResponse, onCompleteResponse).
PLEASE NOTE: LMStudioChatModel required some more work, which I am still not able to test because LMStudio is not really working on my PC. I'll be happy to improve or do more changes as reqquired.