Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bug: AiMessage text content is not copied when toolCalls are pres…
…ent (langchain4j#1576) ## Issue <!-- Please specify the ID of the issue this PR is addressing. For example: "Closes langchain4j#1234" or "Fixes langchain4j#1234" --> langchain4j#986 pr to solve same issue: langchain4j#1069 ## Change When Azure-OpenAI returns both content and tool_calls, keep them all instead of just keeping the tool_calls. ## 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 - [X] 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. --> - [X] I have added/updated the [documentation](https://github.com/langchain4j/langchain4j/tree/main/docs/docs) - [X] I have added an example in the [examples repo](https://github.com/langchain4j/langchain4j-examples) (only for "big" features) - [X] I have added/updated [Spring Boot starter(s)](https://github.com/langchain4j/langchain4j-spring) (if applicable)
- Loading branch information