mistralM

Docs

SecurityAPI

Security update: padding parameter p added to Completion API stream chunks

We added a new padding field p to chunks streamed back by the Completion API to mitigate token-length side-channel attacks, as reported by Microsoft researchers.

Compatibility note

  • Applications relying on strict schema parsing of raw SSE chunks may need to allow the additional p field.
  • Applications using the official Mistral SDKs are unaffected.
  • Users relying on the mistral-common package should upgrade to version 1.8.4 or higher.