#1007·mlx-lm

Allow structured generation through "response_format" in mlx_server

Author: avbiswasCreated Mar 15, 2026Updated Sep 21, 2026

Currently passing response_format into client.chat.completions.create after starting a mlx_server returns an empty output (not even an error, which makes it harder to catch).

Can we integrate outlines (or something similar) and generate structured outputs? While still maintaining continuous batching and parallel decoding?

Outlines supports basic generate already. https://dottxt-ai.github.io/outlines/latest/features/models/mlxlm/