Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to LangChain4j 0.29.0 #6

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

langchain4j
Copy link
Contributor

Hi @marcushellberg!
Do you mind if I update the code to use the latest (0.29.0) LangChain4j version and its latest features?

Changes in this PR:

  • Using langchain4j-open-ai-spring-boot-starter auto-configuration instead of manually creating OpenAiStreamingChatModel
  • Using declarative AI Service instead of manually creating LangChain4jAssistant
  • Removed manual creation of OpenAiTokenizer as it is now automatically provided by langchain4j-open-ai-spring-boot-starter
  • Changed the tokenizer configuration to split into segments of 50 tokens, because the current setting (200) does not split, as the terms-of-service.txt is only 162 tokens long
  • Removed unnecessary ollama and mapdb dependencies

Please let me know if you want me to do any other adjustments.
Thank you!

@marcushellberg marcushellberg merged commit e983c85 into marcushellberg:main Mar 26, 2024
@marcushellberg
Copy link
Owner

Looks good. Thanks a lot for contributing!

@langchain4j
Copy link
Contributor Author

Great, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants