github charmbracelet/fantasy v0.3.0

latest releases: v0.11.0, v0.10.0, v0.9.0...
3 months ago

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.

Don't miss a new fantasy release

NewReleases is sending notifications on new releases.