langchain/libs/partners/mistralai/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
..
integration_tests infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
unit_tests mistral[patch]: translate tool call IDs to mistral compatible format (#24668) 2024-07-25 12:39:32 -04:00
__init__.py mistralai: Add langchain-mistralai partner package (#14783) 2023-12-19 10:34:19 -05:00