Rig v0.34.0 now available! #1580
gold-silver-copper
announced in
Announcements
Replies: 1 comment 1 reply
|
Hi everyone! You are probably wondering why I haven't made the announcement post this time. Today or so is actually my last day at Playgrounds, and as such I will be handing lead maintainership over to @gold-silver-copper who will be taking my place. He has a number of years of experience in open source, he's good at Rust and WASM and he also additionally has plenty of experience with AI so I foresee Rig being in good hands while he's in charge as i personally hand-picked him for the role. (and yes, I realise it's April Fools Day... 😓 ) |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone, Rig v0.34 is available to use!
Let's get right into talking about what's new this version and what's been updated.
Generic, immutable history
One of the bigger API improvements in this release is that prompt-generation methods such as
prompt,stream_prompt, and related interfaces now accept iterators over&Messagerather than owned or mutableVec<Message>values.If your application already owns and manages conversation state, you can now pass borrowed history into Rig directly instead of cloning, which should improve performance when working with large histories. It should also allow for easy streaming of messages from a database, without any intermediate cloning.
Better request customization for OpenAI-compatible providers
Rig now respects custom
Authorizationheaders set viahttp_headers().Previously, Rig would always overwrite the
Authorizationheader with the provider's default auth scheme, which made some OpenAI-compatible backends awkward or impossible to use cleanly. In practice, that meant providers which expect something other thanBearer <token>often required workarounds outside of Rig.With this change, if you explicitly provide an
Authorizationheader yourself, Rig leaves it alone. This makes it much easier to work with custom gateways and OpenAI-compatible providers that use different auth conventions.xAI TTS support
We've added Grok / xAI text-to-speech support in this release, further expanding Rig's model capability coverage.
Native TLS support
You can now choose
native-tlsinstead of the defaultrustls, which should make integration a little easier for environments that prefer or require native TLS handling.Telemetry and Anthropic caching improvements
Rig's OpenTelemetry GenAI cache token reporting is now more spec-compliant, which should improve compatibility with OTel-aware backends like Honeycomb, Grafana, and Langfuse.
This release also adds automatic Anthropic prompt caching helpers on the model builder, with support for both the default 5-minute TTL and an opt-in 1-hour variant where available.
Fixed
anyOf/oneOfwould not infer string type correctlychat_historyduring multi-turn streamingencrypted_contentwas serialized even when it wasNoneprompt_tokenswas missingprompt_token_countoptionalOther
rig-derivenow correctly propagates function visibility to generated tool structsFull changelog: #1532
Thanks for reading! We build rig, rig builds us.
All reactions