Simon Willison
a3a2996fed
Tools in templates ( #1138 )
...
Closes #1009
2025-05-30 17:44:52 -07:00
Simon Willison
3f25bb8bc9
Document difference between templates and fragments, cloess #918
...
!stable-docs
2025-04-13 20:50:26 -07:00
guspix
0cc26b3d4f
Allow escaping a dollar sign in templates by adding another dollar sign ( #876 )
...
* Allow escaping a dollar sign in templates by adding another dollar sign
* Docs for escaping $$ in template, refs #876 , #904
Closes #904
---------
Co-authored-by: Simon Willison <swillison@gmail.com>
2025-04-08 20:33:39 -07:00
Simon Willison
56d7f2f13a
llm prompt -t filepath.yaml support, closes #897
2025-04-08 13:36:48 -07:00
Simon Willison
631835ef71
If template has no $input variable prompt is still concatenated, closes #878
2025-04-07 07:31:28 -07:00
Simon Willison
d4a54bb7a8
Added missing reference ID, refs #884
2025-04-06 22:13:10 -07:00
Simon Willison
de0ae8118d
Documentation for fragments: and system_fragments:, closes #884
2025-04-06 22:12:05 -07:00
Simon Willison
1aad73168d
Reorder docs, rename Prompt templates to Templates
2025-04-06 17:05:49 -07:00
Simon Willison
9a24605996
Allow -t to take a URL to a template, closes #856
2025-03-27 20:36:58 -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