Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mistral: map toolCallId for tool messages (langchain4j#2278)
## Change Mistral tests are currently fail because all of a sudden Mistral decided to make `tool_call_id` parameter in `tool` messages mandatory: `Runtime java.lang.RuntimeException: status code: 400; body: {"object":"error","message":"Tool call id has to be defined.","type":"invalid_request_error","param":null,"code":null}`. This probably affects all Mistral users using tools. cc @geoand ## General checklist - [X] There are no breaking changes - [ ] I have added unit and/or integration tests for my change - [ ] The tests cover both positive and negative cases - [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 - [ ] 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) - [ ] I have added/updated [Spring Boot starter(s)](https://github.com/langchain4j/langchain4j-spring) (if applicable)
- Loading branch information