Skip to content

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 10:25
· 9 commits to main since this release

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.


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.