Simon Willison
a0845874ec
Schema template --save --schema support
...
* Don't hang on stdin if llm -t template-with-schema
* Docs on using schemas with templates
* Schema in template YAML file example
* Test for --save with --schema
Refs #778
2025-02-27 07:19:15 -08:00
Simon Willison
849c65fe9d
Upgrade to Pydantic v2 ( #775 )
...
* Upgrade to Pydantic v2
* Stop testing against Pydantic v1
Closes #520
2025-02-26 10:05:54 -08:00
Simon Willison
656d8fa3c4
--xl/--extract-last flag for prompt and log list commands ( #718 )
...
Closes #717
2025-01-24 10:52:46 -08:00
Simon Willison
000e984def
--extract support for templates, closes #681
2024-12-19 07:16:48 -08:00
Simon Willison
adb900be1a
Restore extra=forbid for Template, refs #169
2023-08-19 21:42:32 -07:00
Simon Willison
5bf0f4165f
Removed incomplete model_config feature, refs #169
2023-08-19 21:38:09 -07:00
Simon Willison
a421aab7f0
Renamed template.execute() to template.evaluate() and added type hints
2023-07-10 08:27:28 -07:00
Simon Willison
9ac120fae4
Upgrade to pydantic 2 using bump-pydantic, refs #74
2023-07-01 11:53:54 -07:00
Simon Willison
13fb4c2966
Refactor Template into templates.py
2023-07-01 08:27:45 -07:00