GPT-JSON
github.com · Open source · Archived
Typed, structured GPT responses in Python, cast to Pydantic models
- AI & agents
- Open source
- Python
- Day-7 check
- Day-30 check
- Stars
- 734
- Forks
- 28
- Open issues
- 0
- Last commit
- Releases
- 19
- Found
- 3 years ago
GitHub figures as of . They are context, not a ranking.
GPT-JSON is a Python library that prompts GPT for structured output, handles common formatting errors, and casts the result into typed Pydantic objects. It suits developers who run GPT in data generation or benchmarking scripts and need reliable fields.
Repository description on GitHub: “Structured and typehinted GPT responses in Python”
What it does
- Pydantic schema definitions for type casting and validation
- Retry logic for common API failures
- Prompt templating for dynamic content
- Supports vision, function calling and chat prompts
Good for
- Get typed Python objects from GPT responses
- Generate structured data for benchmarking scripts
- Fix broken JSON output from a GPT prompt
Suits: Python developers running GPT in data generation scripts.
Worth knowing: Requires an OpenAI API key to call GPT
What you can try
Read the README on GitHub and install from source.
Install
pip install gpt-jsonTaken from the project’s README. Read the project’s own instructions before running anything.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw GPT-JSON on , when icyfox posted it to Show HN. The oldest published release on GitHub is v0.1.1, dated . Its first tagged release landed the same day it was found. 19 releases have been published in total; the latest is v0.5.1 ().
Day-7 and day-30 updates
Day 7 archived
- No tagged release was published in the first 7 days after it was found (GitHub release dates).
- The repository was archived (read-only) when checked.
- Show HN discussion at check time: 174 points, 72 comments. API record
Checked , later than day 7 because tracking began after.
Day 30 archived
- 6 releases in the first 30 days: v0.1.5 (18 May 2023), v0.1.6 (18 May 2023), v0.1.7 (19 May 2023), v0.1.8 (19 May 2023), v0.1.9 (19 May 2023), v0.1.10 (27 May 2023)
- The repository was archived (read-only) when checked.
- Show HN discussion at check time: 174 points, 72 comments. API record
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: piercefreeman/gpt-json
- Release v0.1.1
- Found: icyfox posted it to Show HN. Show HN
- Release v0.3.0
- Release v0.4.0
- Release v0.4.1
- Release v0.4.2
- Release v0.5.0
- Release v0.5.1
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Showing the first and the 6 latest of 19 releases. All releases on GitHub
Quick answers
- When was GPT-JSON released?
- Its first tagged release on GitHub is dated 4 May 2023. Kip found it on Show HN on 4 May 2023.
- Is GPT-JSON open source?
- Its source is public on GitHub at piercefreeman/gpt-json under the MIT licence.
- What does GPT-JSON run on?
- Library.
- Is GPT-JSON free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is GPT-JSON still maintained?
- No. The repository is archived (read-only).
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | piercefreeman/gpt-json REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-35821748. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.