Tysm, a Rust crate for using ChatGPT with Structured Outputs
Tysm, a Rust crate for using ChatGPT with Structured Outputs
Hi HN! This Christmas I made `tysm`, a rust crates which simplifies using ChatGPT with Structured Outputs. Essentially you just tell it the rust type you want the output to conform to, and it handles creating the JSON Schema, passing it to ChatGPT's chat-completions API, and deserializing the response. Structured Outputs are very useful because they guarantee that the response will conform to whatever type you expect. I'm already finding my crate very useful since I love using Structured Outputs but I hate writing JSON Schemas myself. Technical details for rust heads: To generate the JSON Schema, it uses an unreleased version of the `schemars` crate. (Hopefully it will be released soon and then I won't have to put up this disclaimer anymore.) For deserialization, it uses `serde`.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Incorrect prediction on native model
Similar products
How to Annoy Your Coworkers for $42 Using ClojureScript and Rust
Emulating aarch64 in software using JIT compilation and Rust
ChatGPT built in Rust + Vue
Igrepper – Interactive grepping using ncurses and rust
I rendered the Rust logo using Rust
Structured, composable logging for Rust
YAML to Django Using ChatGPT
Screencast: An Introduction to Rust
Handlebars for Rust
Oxischeme – A Scheme implementation in Rust