Hey @Proman4713 🇵🇸 . FIrst of all, apologies for all the issues you're running into. While the Wor

Hey @Proman4713 🇵🇸 . FIrst of all, apologies for all the issues you're running into. While the Workers AI platform itself is very mature at this point, we have a fairly long tail of model/software specific nuances that can result in these confusing behaviours/errors.

In this case it seems like the underlying mistral_common package is raising an exception: "Unexpected role 'tool' after role 'user'".

We should at the very least be propagating that error back to you, rather than giving you an opaque server error.

With regards to the error itself, have you tried following the Mistral docs? https://docs.mistral.ai/capabilities/function_calling/
Was this page helpful?