文件历史

提交图

15 次代码提交

作者 SHA1 备注 提交日期
Simon Willison 2217945d34 Allow -t to take a URL to a template, closes #856
Test / test (macos-latest, 3.12) (push) Has been cancelled
Test / test (macos-latest, 3.13) (push) Has been cancelled
Test / test (macos-latest, 3.9) (push) Has been cancelled
Test / test (ubuntu-latest, 3.10) (push) Has been cancelled
Test / test (ubuntu-latest, 3.11) (push) Has been cancelled
Test / test (ubuntu-latest, 3.12) (push) Has been cancelled
Test / test (ubuntu-latest, 3.13) (push) Has been cancelled
Test / test (ubuntu-latest, 3.9) (push) Has been cancelled
Test / test (windows-latest, 3.10) (push) Has been cancelled
Test / test (windows-latest, 3.11) (push) Has been cancelled
Test / test (windows-latest, 3.12) (push) Has been cancelled
Test / test (windows-latest, 3.13) (push) Has been cancelled
Test / test (windows-latest, 3.9) (push) Has been cancelled
Test / test (macos-latest, 3.10) (push) Has been cancelled
Test / test (macos-latest, 3.11) (push) Has been cancelled
2025-03-27 20:36:42 -07:00
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 6c9a8efb50 register_template_loaders plugin hook, closes #809
* Moved templates CLI commands next to each other
* llm templates loaders command
* Template loader tests
* Documentation for template loaders
2025-03-21 16:46:44 -07:00
Simon Willison 1bebf8b34a --schema t:template-name option, plus improved schema docs
Closes #799, refs #788
2025-02-27 17:25:31 -08:00
Simon Willison 362bdc6dcc It's schema_object: not schema: 2025-02-27 17:12:06 -08: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 000e984def --extract support for templates, closes #681 2024-12-19 07:16:48 -08:00
Simon Willison 0eeb8393ca llm models and llm templates default to list, closes #167 2023-08-19 20:04:14 -07:00
Jorge be55a71b15 Fix for error in templates.md
Thanks @dokeet
2023-07-24 08:43:25 -07:00
Simon Willison 9f1085eece --save now stores -p as default parameters, closes #58 2023-06-23 07:51:50 -07:00
Simon Willison 351b182da4 Changelog for template defaults, refs #57 2023-06-17 23:53:41 +01:00
Chris Mungall 482292b7d7 Add a defaults parameter to templates. (#57)
This allows default values to be filled for templates.

For example:
```yaml
prompt: Summarize this text in the voice of $voice
defaults:
  voice: GlaDOS
```
2023-06-17 23:49:27 +01:00
Simon Willison 0b65aefb6e llm prompt ... --save templatename shortcut, closes #55 2023-06-17 23:22:59 +01:00
Simon Willison 2d3d297103 Release 0.4
Refs #6, #13, #15, #16, #17, #21, #24, #25, #35, #37
2023-06-17 09:42:13 +01:00
Simon Willison 144ffc3f6b Prompt templates
Closes #23
2023-06-17 08:40:46 +01:00