From 42122c79ba6adaf2113d8c5b58c9cbd344cf6696 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Wed, 26 Feb 2025 17:05:13 -0800 Subject: [PATCH] Release 0.23a0 Refs #776, #777 --- docs/changelog.md | 10 ++++++++++ setup.py | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index d6cbe48..3a833d3 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,15 @@ # Changelog +(v0_23_a0)= +## 0.23a0 (2025-02-26) + +Alpha release adding support for **schemas**, for getting supported models to output JSON that matches a specified JSON schema. [#776](https://github.com/simonw/llm/issues/776) + +- `llm prompt --schema '{JSON schema goes here}` option for specifying a schema that should be used for the output from the model, see {ref}`schemas in the CLI docs `. +- `model.prompt(..., schema={...})` parameter for specifying a schema from Python. This accepts either a dictionary JSON schema definition of a Pydantic `BaseModel` subclass, see {ref}`schemas in the Python API docs `. +- The default OpenAI plugin now supports schemas across all models. +- Documentation on how to {ref}`add schema support to a model plugin `. + (v0_22)= ## 0.22 (2025-02-16) diff --git a/setup.py b/setup.py index 23d80cf..34f7ae2 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages import os -VERSION = "0.22" +VERSION = "0.23a0" def get_long_description():