LangChain4j
LangChain4j
This will lead to this when using OpenAI: > dev.ai4j.openai4j.OpenAiHttpException: { > "error": { > "message": "Invalid parameter: messages with role 'tool' must be a response to a preceeding message...
Can use HtmlTextExtractor under the hood
  https://learn.microsoft.com/en-au/azure/ai-services/openai/how-to/function-calling?tabs=python#using-function-in-the-chat-completions-api-deprecated
Currently, when calculating overlap, we are first splitting previous segment by **sentences**, then try to fit as many sentences as possible into the overlap. One should be able to configure...
Make sure created `Image` (from all possible sources) can be used as inputs in all places: - `*ChatModel` (wrapped as `ImageContent`) - `*ImageModel` - etc Make sure mime type is...
## Summary by CodeRabbit - **New Features** - Introduced enhanced flexibility for managing entries within the `InMemoryEmbeddingStore`. - **Tests** - Added a test to verify the functionality of merging multiple...
## Summary by CodeRabbit - **New Features** - Updated the `OpenAiTokenizer` to support initialization with specific OpenAI model names, enhancing flexibility in model selection.
## Summary by CodeRabbit - **New Features** - Introduced streaming functionality for creating messages in the Anthropic API. - Added a new Anthropic language model variant `CLAUDE_3_HAIKU_20240307`. - Implemented a...