It's schema_object: not schema:

This commit is contained in:
Simon Willison 2025-02-27 17:12:06 -08:00
parent b1fe2e9857
commit 362bdc6dcc

View file

@ -132,7 +132,7 @@ prompt: 'Summarize this: $input'
```
### Schemas
Use the `schema:` key to embed a JSON schema (as YAML) in your template. The easiest way to create these is with the `llm --schema ... --save name-of-template` command - the result should look something like this:
Use the `schema_object:` key to embed a JSON schema (as YAML) in your template. The easiest way to create these is with the `llm --schema ... --save name-of-template` command - the result should look something like this:
```yaml
name: dogs