Mistral provides a FIM (fill-in-the-middle) endpoint, see: https://docs.mistral.ai/capabilities/code_generation/#fim We should support it.