Results 114 issues of 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...

bug

![image](https://github.com/langchain4j/langchain4j/assets/132277850/ae255be4-fe54-488f-9f4e-6e8a6d9d9575) ![image](https://github.com/langchain4j/langchain4j/assets/132277850/1c8701aa-257c-442e-bd6d-e4242e9a6d27) https://learn.microsoft.com/en-au/azure/ai-services/openai/how-to/function-calling?tabs=python#using-function-in-the-chat-completions-api-deprecated

bug

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...

enhancement
P4

## 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...