AI Concepts
How to Get a Forced-Choice Answer From vLLM With Structured Outputs
Ask vLLM for a sentiment label from a fixed list by passing a structured_outputs choice through extra_body.
WORKFLOW TAG
Use a schema to constrain model output and check the response in your application.
Ask vLLM for a sentiment label from a fixed list by passing a structured_outputs choice through extra_body.
Ask LM Studio for JSON that matches a schema by sending response_format in the chat completion request.