Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix 1218 - MistralAi streaming blank (langchain4j#1243)
## Issue langchain4j#1218 ## Change ```java MistralAiChatCompletionChoice choice = chatCompletionResponse.getChoices().get(0); String chunk = choice.getDelta().getContent(); if (isNotNullOrEmpty(chunk)) { // changed form `isNotNullOrBlank` to `isNotNullOrEmpty` contentBuilder.append(chunk); handler.onNext(chunk); } ``` ## General checklist <!-- Please double-check the following points and mark them like this: [X] --> - [X] There are no breaking changes - [X] I have added unit and integration tests for my change - [X] I have manually run all the unit and integration tests in the module I have added/changed, and they are all green - [ ] I have manually run all the unit and integration tests in the [core](https://github.com/langchain4j/langchain4j/tree/main/langchain4j-core) and [main](https://github.com/langchain4j/langchain4j/tree/main/langchain4j) modules, and they are all green <!-- Before adding documentation and example(s) (below), please wait until the PR is reviewed and approved. --> - [ ] I have added/updated the [documentation](https://github.com/langchain4j/langchain4j/tree/main/docs/docs) - [ ] I have added an example in the [examples repo](https://github.com/langchain4j/langchain4j-examples) (only for "big" features)
- Loading branch information