langchain/libs/partners/mistralai/tests/unit_tests
ccurme dfbd12b384
mistral[patch]: translate tool call IDs to mistral compatible format (#24668)
Mistral appears to have added validation for the format of its tool call
IDs:

`{"object":"error","message":"Tool call id was abc123 but must be a-z,
A-Z, 0-9, with a length of
9.","type":"invalid_request_error","param":null,"code":null}`

This breaks compatibility of messages from other providers. Here we add
a function that converts any string to a Mistral-valid tool call ID, and
apply it to incoming messages.
2024-07-25 12:39:32 -04:00
..
__init__.py
test_chat_models.py mistral[patch]: translate tool call IDs to mistral compatible format (#24668) 2024-07-25 12:39:32 -04:00
test_embeddings.py infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
test_imports.py mistralai[minor]: Add embeddings (#15282) 2024-01-16 17:48:37 -08:00
test_standard.py infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00