github langchain4j/langchain4j 1.0.0-rc1
1.0.0-rc1 and 1.0.0-beta4

latest releases: 1.4.0, 1.3.0, 1.2.0...
4 months ago

Announcements

We are excited to announce the release of version 1.0.0-rc1 (release candidate 1) for the following modules:

  • langchain4j-core
  • langchain4j
  • langchain4j-http-client
  • langchain4j-http-client-jdk
  • langchain4j-open-ai

The rest of the modules are released under the 1.0.0-beta4 version. We are currently finalizing the remaining updates and plan to release the next set of modules as 1.0.0-rc1 in June.

Please try out version 1.0.0-rc1 and share any feedback. We plan to release the final 1.0.0 version in mid-May.

In case you are using langchain4j-bom, it remains at version 1.0.0-beta4, but includes the latest versions for each module (including 1.0.0-rc1 for the modules listed above).

Breaking Changes

This release introduces the following breaking changes. Please find the details in the corresponding PRs.

  • Renamed ChatLanguageModel into ChatModel and StreamingChatLanguageModel into StreamingChatModel by @dliubarskyi in #2866
  • Renamed Tokenizer into TokenCountEstimator by @dliubarskyi in #2874
  • Fix #2794 by @dliubarskyi in #2906
  • Removed redundant TextFile and TextFileContent by @dliubarskyi in #2908
  • Fix #2918 (maxRetries) by @dliubarskyi in #2919
  • Move Kotlin extensions to separate module by @kpavlov in #2943
  • Removed logging of potentially sensitive information by @dliubarskyi in #2934
  • ChatMemoryAccess: moved to dev.langchain4j.service.memory package in 082a758
  • All collections (such as Lists, Sets, Maps, etc.) returned by the LangChain4j APIs in the langchain4j-core, langchain4j and langchain4j-open-ai modules are now non-nullable. Empty collections will be returned instead of null.
  • Renamed and moved around some internal utility classes (which you should not use directly, even if they are public). All such classes are now annotated with @Internal.

To make the migration easier, please use the following OpenRewrite recipe:

mvn -U org.openrewrite.maven:rewrite-maven-plugin:6.7.0:run -Drewrite.recipeArtifactCoordinates=dev.langchain4j:langchain4j-openrewrite-recipes:1.0.0-rc1 -Drewrite.activeRecipes=dev.langchain4j.UpgradeToRc1AndBeta4

Please note that you need to run this before updating the versions to 1.0.0-rc1 and 1.0.0-beta4.

Other Changes

New Contributors

Full Changelog: 1.0.0-beta3...1.0.0-rc1

Don't miss a new langchain4j release

NewReleases is sending notifications on new releases.