Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 10, 2025

Bumps dev.langchain4j:langchain4j from 1.0.0-alpha1 to 1.0.0-beta1.

Release notes

Sourced from dev.langchain4j:langchain4j's releases.

1.0.0-beta1

Announcements

  • We are deprecating our old ChatLanguageModel.generate(...) and StreamingChatLanguageModel.generate(...) APIs in favour of the new ChatLanguageModel.chat(...) and StreamingChatLanguageModel.chat(...) APIs. We plan to fully migrate all of our chat model integrations to the new chat() API in the upcoming releases. If you have any concerns or comments, please reach out.
  • We have started decoupling our modules from OkHttp client. Ollama is the first module that has been migrated as part of this release. When using the langchain4j-ollama dependency, Ollama*Models will now use JDK's HttpClient by default. When using the langchain4j-ollama-spring-boot-starter dependency, Ollama*Models will now use Spring's RestClient. This change reduces unnecessary dependencies, enables out-of-the-box observability and makes it easy to customize supported HTTP clients or integrate other HTTP clients. We plan to migrate a few other modules (OpenAI, Anthropic, Mistral, Hugging Face, etc.) in the future releases. If you have any concerns or comments, please reach out.

Notable Changes

Breaking Changes

  • langchain4j/langchain4j#2450: Removed default values for modelName (gpt-3.5-turbo) and temperature (0.7) for OpenAiChatModel and OpenAiStreamingChatModel. Please set those values explicitly.
  • langchain4j/langchain4j#1988: Converted Document and Content into interfaces. If you use Document or Content constructors, please either use the Document.from(...)/Content.from(...) static factories, or use the DefaultDocument/DefaultContent constructors.
  • langchain4j/langchain4j#2403:
    • OpenAiStreamingChatModel: in case of errors that happen in the middle of streaming, partial response (everything that was streamed before the error occured) is not propagated into the ChatModelListener.onError() any more in order to simplify the design and implementation. Please reach out if you have any concerns about it.
    • OpenAiChatModel and OpenAiStreamingChatModel: if the maxCompletionTokens property is set, it's value is now not propagated into the ChatModelListener via ChatModelRequest.maxTokens().
  • langchain4j/langchain4j#2330: Exceptions due to content policy violation are now propagated from AzureOpenAiImageModel, AzureOpenAiLanguageModel and AzureOpenAiStreamingLanguageModel.
  • langchain4j/langchain4j#2436:
  • langchain4j/langchain4j#2492: Renamed langchain4j-redis maven artifact into langchain4j-community-redis.
  • langchain4j/langchain4j#2466: Moved IllegalConfigurationException from the dev.langchain4j.exception into the dev.langchain4j.service package.

Potentially Breaking Changes

Updates in the Spring Boot integration

See https://github.com/langchain4j/langchain4j-spring/releases/tag/1.0.0-beta1

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [dev.langchain4j:langchain4j](https://github.com/langchain4j/langchain4j) from 1.0.0-alpha1 to 1.0.0-beta1.
- [Release notes](https://github.com/langchain4j/langchain4j/releases)
- [Commits](langchain4j/langchain4j@1.0.0-alpha1...1.0.0-beta1)

---
updated-dependencies:
- dependency-name: dev.langchain4j:langchain4j
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Feb 10, 2025
@sualeh sualeh merged commit fd80b6b into main Feb 10, 2025
2 checks passed
@sualeh sualeh deleted the dependabot/maven/dev.langchain4j-langchain4j-1.0.0-beta1 branch February 10, 2025 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants