langchain/libs
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>
2024-05-02 13:20:14 -04:00
..
cli cli[minor]: improve confirmation message with more details (#21027) 2024-04-29 12:20:42 -04:00
community community[patch]: Refactor CassandraDatabase wrapper (#21075) 2024-05-02 13:13:08 -04:00
core core[patch]: Release 0.1.49 (#21211) 2024-05-02 17:06:27 +00:00
experimental experimental: clean python repl input(experimental:Added code for PythonREPL) (#20930) 2024-05-01 05:19:09 +00:00
langchain langchain[patch]: Make more memory code handle community dependency as optional (#21199) 2024-05-02 11:05:26 -04:00
partners partners(mistralai): Removing unused variable in completion request (using tool_calls or content) (#21201) 2024-05-02 13:20:14 -04:00
standard-tests standard-tests: split tool calling test (#20803) 2024-04-23 20:59:45 +00:00
text-splitters text-splitters[patch]: fix MarkdownHeaderTextSplitter fails to parse headers with non-printable characters (#20645) 2024-04-25 00:07:42 +00:00