Open jowsey opened 1 month ago
Does LM Studio server support the JSON Schema ability? I dont see anything in the docs and Id like to know this as well. Would it be possible to get a clarification by the developers as to what is exactly supported? I see the release blog post says it does but I cannot see anywhere in LM Studio that support providing a json schema.
When prompting the local server with Structured Outputs and providing a property with any union type (regardless of the inclusion of
null
), unless an enum is provided, the value will always generate as null, even if it would not make sense for the model to do so:Prompt:
Actual output:
Output when
enum
is defined, ortype
is"string"
:Also, looking through the docs, and having not used OpenAI's platform before: LM Studio expects a
schema
object, whereas OpenAI (whose format LM Studio claims to follow), expectsparameters
. Not sure if that's an oversight or intended.Tested with: Gemma 2 9B/27B, Mistral Nemo 13B, and Phi 3.5 mini (all on reasonable quants) LM Studio 0.3.2 AMD Radeon RX 7900 XTX ROCm llama.cpp (Windows) v1.1.9 Windows 11