文件历史

提交图

11 次代码提交

作者 SHA1 备注 提交日期
Simon Willison 1ad7bbd32a Ability to store options in templates (#845)
* llm prompt --save option support, closes #830
* Fix for templates with just a system prompt, closes #844
* Tests for options from template, refs #830
* Test and bug fix for --save with options, refs #830
* Docs for template options support, refs #830
2025-03-22 17:24:02 -07:00
Simon Willison bfbcc201b7 Don't require input if template does not use $input, closes #835 2025-03-15 19:17:36 -07:00
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