nowfound

Dev tools · December 27, 2024

TA

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…

What it does

In the maker’s words, at launch

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`.

Does the same job

all alternatives →
  • Tabstack Structured ExtractionJun 2026 · ▲199

    Extract web data into structured JSON, no scraper required.

  • GPT Nitro for Github PR2023 · ▲113

    A ChatGPT-based reviewer for your GitHub pull requests

  • Scrape Comfort2023 · ▲126

    ChatGPT-based local scraper for easy scraping

  • chatgpt.js2023 · ▲137

    A powerful client-side JavaScript library for ChatGPT

  • AT
  • WA
    We added ChatGPT to our documentation to make them fully portable2023 · xata.io · ▲7

    TLDR: Check out our documentation search here: https://xata.io/docs/overview Hello HN. I'm a designer over at Xata. We build a serverless database platform on top of Postgres and Elastic-like search that provides goodies like a native TypeScript client for type support in your IDE. Long story short, we're trying to bundle all the normal stuff you need out of a database along with branching, so you don't have to glue everything together. Today we added a new /ask/ endpoint to our search product that bundles in ChatGPT support into any stored data. Why would you…

More dev tools this month

the category →
  • Dograh592

    The open source VAPI alternative

    Dev tools · 25d ago · dograh.com

  • Meridian530

    Don't let your work go unnoticed. Get promoted!

    Dev tools · 20d ago · meridiona.com

  • x1516

    Lovable for iPhone apps go from idea to App Store

    Dev tools · 11d ago · x1.new

  • Open-source GTM skills for technical founders

    Dev tools · 29d ago · gtmcofounder.com

  • OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.

    Dev tools · 2d ago · opentrailpaper.com

  • Nuphos380

    The AI-Native DevOps Workspace.

    Dev tools · 24d ago · nuphos.ai

Launched alongside, December 2024

the whole month →
  • Remy AI2,172

    Anyone can sleep and recover better

    AI · 2024 · apps.apple.com

  • Remento1,686

    The AI biographer for loved ones

    AI · 2024 · remento.co

  • Aimfox1,213

    Built for LinkedIn outreach, made to close deals

    Growth · 2024 · aimfox.com

  • Stackfix1,112

    Compare software in seconds

    AI · 2024 · stackfix.com

  • Coval1,012

    Simulation & evals to ship delightful voice & chat AI agents

    AI · 2024 · coval.ai

  • VocAdapt961

    Master languages with AI-adapted authentic content

    Life & fun · 2024 · vocadapt.com