v0.3.0
Structured Output
Fantasy now supports structured output.
You can now specify what the output of the model should be using a struct and fantasy will use different methods to enforce this based on the provider, for OpenAI & Google it uses JSON response (by default) and for others it uses a tool to do this behind the scene.
You can check the structured-output example for more.
Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
