langchain/libs/partners/mistralai/tests/unit_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>
2024-05-02 13:20:14 -04:00
..
__init__.py
test_chat_models.py partners(mistralai): Removing unused variable in completion request (using tool_calls or content) (#21201) 2024-05-02 13:20:14 -04:00
test_embeddings.py mistralai[patch]: standardize model params (#20163) 2024-04-08 11:48:38 -05:00
test_imports.py
test_standard.py standard-tests: a standard unit and integration test set (#20182) 2024-04-09 12:43:00 -07:00