You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/partners/mistralai/tests
Maxime Perrin 1ebb5a70ad
partners(mistralai): Removing unused variable in completion request (using tool_calls or content) (#21201)
This PR fixes #21196.

The error was occurring when calling chat completion API with a chat
history. Indeed, the Mistral API does not accept both `content` and
`tool_calls` in the same body.

This PR removes one of theses variables depending on the necessity.

---------

Co-authored-by: Maxime Perrin <mperrin@doing.fr>
Co-authored-by: Chester Curme <chester.curme@gmail.com>
5 months ago
..
integration_tests mistral: read tool calls from AIMessage (#20554) 6 months ago
unit_tests partners(mistralai): Removing unused variable in completion request (using tool_calls or content) (#21201) 5 months ago
__init__.py mistralai: Add langchain-mistralai partner package (#14783) 10 months ago