mirror of
https://github.com/hwchase17/langchain
synced 2024-11-11 19:11:02 +00:00
dfbd12b384
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. |
||
---|---|---|
.. | ||
integration_tests | ||
unit_tests | ||
__init__.py |