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
1be6230f1f
llm install and llm uninstall, closes #51 , refs #49
2023-06-17 17:55:53 +01:00
Simon Willison
a396950f79
Initial plugin framework and register_commands(cli) hook, refs #49
2023-06-17 17:42:13 +01:00
Simon Willison
0e0be4db28
Better display of system and prompt, refs #44
2023-06-17 10:10:10 +01:00
Simon Willison
b573096d59
Show system prompts in llm templates list, closes #44
2023-06-17 10:08:30 +01:00
Simon Willison
19e6945dde
Fix newline issue in llm templates list, closes #42
2023-06-17 09:51:16 +01:00
Simon Willison
b27c2cdac9
Rename log.db to logs.db, closes #41
2023-06-17 09:29:46 +01:00
Benjamin Kirkbride
b12e28c4ec
Add 16k models ( #38 )
...
also added a `3.5` alias
2023-06-17 09:22:52 +01:00
Simon Willison
5e21195e93
Improvements to help, closes #40
2023-06-17 09:19:52 +01:00
Simon Willison
144ffc3f6b
Prompt templates
...
Closes #23
2023-06-17 08:40:46 +01:00
Simon Willison
8308fe5cbf
Store debug info, closes #34
2023-06-16 08:51:56 +01:00
Simon Willison
5cd753d9e2
Drop platformdirs in favor of click, closes #29
2023-06-15 22:53:21 +01:00
Simon Willison
ef75f837e6
Removed last mentions of ~/.llm - refs #27
2023-06-15 22:44:47 +01:00
Simon Willison
e6a1628b24
Remove -4, add shortcut mechanism, refs #17
2023-06-15 22:14:55 +01:00
Simon Willison
7aff07e231
No need for rowid in select any more
2023-06-15 22:09:19 +01:00
Simon Willison
af8d596e63
Moved logs.db to user_data_dir, closes #27
2023-06-15 20:19:02 +01:00
Simon Willison
1bb04c416c
Move logs.db to user_data_dir, refs #27
2023-06-15 19:59:08 +01:00
Simon Willison
44bcc8f63c
New table schema, with new migrations system - closes #26
2023-06-15 19:33:31 +01:00
Simon Willison
6545ce9da6
Stream by default, added--no-stream option, closes #25
...
Also finished the work needed to remove --code, refs #24
2023-06-15 18:49:11 +01:00
Simon Willison
d72ac8779a
Remove --code feature, closes #24 , refs #23 , #17
2023-06-15 18:42:17 +01:00
Simon Willison
62b90d92bc
Rename default openai command to prompt, refs #17
2023-06-15 18:36:14 +01:00
Simon Willison
a5f5801b96
Better error message for invalid API key
2023-06-15 17:38:25 +01:00
Simon Willison
9fb3293cba
Now uses API key from keys.json, refs #13
2023-06-15 17:22:13 +01:00
Simon Willison
246266bee7
llm keys set and llm keys path commands, refs #13
2023-06-15 09:14:26 +01:00
Simon Willison
1afb5e83f6
Rename chatgpt to openai, refs #17
2023-06-14 18:19:41 +01:00
Simon Willison
2d1ae2beb5
Added default model back in again, refs #6
2023-06-14 07:52:15 +01:00
Simon Willison
52c54d282d
Use same model for ongoing conversation, refs #6
2023-06-14 07:44:13 +01:00
Simon Willison
ca92c60835
-c/--continue and --chat options plus documentation, refs #6
2023-06-14 07:39:37 +01:00
Simon Willison
eb0de619e9
llm logs -t/--truncate and rowid display, closes #16
2023-06-14 07:27:07 +01:00
Simon Willison
f605b0b1fc
Ensure chat_id is added at log time too, refs #6
2023-06-14 07:08:46 +01:00
Simon Willison
f6c1225f28
Renamed chat_id to _continue, refs #14 , #6
2023-06-14 07:05:50 +01:00
Amjith Ramanujam
37999ce641
-c option for continuing a chat (using new chat_id column) ( #14 )
...
Refs #6
* Add a chat_id to requests
* Fail early if the log.db is absent
* Automatically add the chat_id column.
Co-authored-by: Simon Willison <swillison@gmail.com >
2023-06-14 07:03:35 +01:00
Simon Willison
d222550f66
Better error output for OpenAI messages, closes #15
2023-06-13 19:23:53 +01:00
Simon Willison
abc1e96d1b
Accept prompts sent to standard input, closes #11
2023-05-17 14:08:53 -07:00
Simon Willison
41e5c5481f
llm logs command, closes #3
2023-04-01 18:52:46 -07:00
Simon Willison
fa99b6c340
Suppress some warnings
2023-04-01 18:37:55 -07:00
Simon Willison
229a82dd0f
--code mode, closes #5
2023-04-01 18:36:27 -07:00
Simon Willison
1a840cd7ac
Initial prompt/response log, closes #2
2023-04-01 15:28:46 -07:00
Simon Willison
93ebb96cfa
Rename back to llm, refs #1
Test / test (3.9) (push) Has been cancelled
Test / test (3.10) (push) Has been cancelled
Test / test (3.11) (push) Has been cancelled
Test / test (3.7) (push) Has been cancelled
Test / test (3.8) (push) Has been cancelled
2023-04-01 15:00:19 -07:00
Simon Willison
c5c666867a
Renamed package to llm-cli
2023-04-01 14:41:46 -07:00
Simon Willison
3f89cb9609
Initial prototype, refs #1
2023-04-01 14:28:24 -07:00