Releases: charmbracelet/fantasy
v0.3.2
Changelog
Fixed
- 4e3f10a: fix: handle google model reasoning correctly (#82) (@kujtimiihoxha)
- f677943: fix: look for gpt model type in any part of id (#76) (@dustinlagoy)
- 34c2960: fix: marshal/unmarshal ProviderError when Cause is openai.APIError (#78) (@caarlos0)
Other stuff
- 0132f7c: v0.3.2 (@kujtimiihoxha)
Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
v0.3.1
Changelog
Other stuff
- ade493f: v0.3.1 (@kujtimiihoxha)
Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
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.
v0.2.1
Better OpenAI compat
This release makes further enhancements and fixes to OpenAI compatible providers.
Thanks @Amolith and @casidiablo for contributing!
Changelog
Fixed
- 72026be: fix: honor MaxRetries option and add retry logic to Stream method (#68) (@casidiablo)
- adfbbc0: fix: include reasoning in OpenAI compat (#70) (@Amolith)
Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
v0.2.0
Better error & retries
In this release we rethinked how we return errors to fix some bugs and allow them be more useful on the Crush side.
In the process, we also fixed an issue with retries running more time than it should, due to Fantasy having it's retry mechanism on top of the SDKs retry. We disabled the SDK retries and kept ours.
All this is an ongoing work, and you should expect more improvements in this area soon.
Changelog
Fixed
- bb0bc62: fix(google): return
*fantasy.ProviderErrorwhen we should (@andreynering) - 9e77443: fix: disable sdk retries because we handle retries ourselves (@andreynering)
Other stuff
- 8cb408f: docs(readme,examples): add system prompt to simple example (#60) (@meowgorithm)
- 23cf40d: refactor(errors): remove uneeded marker attribute (@andreynering)
- 512e9de: refactor(errors): remove unused
Nameattribute (@andreynering) - 504fc26: refactor: remove unused error types (@andreynering)
- 789f18b: refactor: rework error types (@andreynering)
Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
v0.1.6
Small dep update
We were importing our own fork of Google's SDK for a fix, but this was addresses upstream, so we're now using the official repo again.
Changelog
Other stuff
- 3536577 chore: use
google.golang.org/genaifrom upstream again (#57) (@andreynering)
Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
v0.1.5
Better Azure
Ensuring that OpenAI models via Azure have access to advanced features like reasoning.
Changelog
Fixed
- 1aa45d8 chore: change azure provider to use openai provider (#53) (@kujtimiihoxha)
Docs
- 72c5acb: docs(readme): minor copyedit (@meowgorithm)
Other stuff
- d747db2: docs(readme) fix context variable name on example (#51) (@lukasmalkmus)
- 6a49919: v0.1.5 (@kujtimiihoxha)
Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
v0.1.4
Fix for llama.cpp
This release fixes a bug for llama.cpp that was causing a JSON Schema validation error for some tool configuration. This fixes llama.cpp provider on Crush.
Changelog
Other stuff
- 86073c1: fix(llama.cpp): fix invalid json schema error for llama.cpp (#50) (@andreynering)
- 3aac9cc: v0.1.4 (@andreynering)
Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
v0.1.3
Fixed multi-tool calls
Ensure that muitiple tool calls run in sequence instead of in parallel. This is important to ensure the right behavior.
Changelog
Fixed
- 1eef3d0: fix: run tools in order (#48) (@kujtimiihoxha)
Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
v0.1.2
Don't panic!
This is just a quick hotfix to fix a nil pointer error.
Changelog
Fixed
- 335c92e: fix: nil pointer error (@kujtimiihoxha)
Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
