Simon Willison
52add96ec1
Rough initial version of new logging, to log2 table
2023-07-02 16:35:36 -07:00
Simon Willison
4a9f7f4908
Lint using Ruff, refs #78
2023-07-02 12:41:40 -07:00
Simon Willison
3ed86e403d
Added mypy, plus some fixes to make it happy - refs #77
2023-07-02 12:36:22 -07:00
Simon Willison
7054c673e1
Better type hint for iter_prompt method
...
The Generator thing is only useful if the method uses the send mechanism
Declaring it an Iterator gives people more flexibility for how they implement it.
2023-07-02 11:18:31 -07:00
Simon Willison
9a180e65a8
llm models default command, plus refactored env variables
...
Closes #76
Closes #31
2023-07-01 14:01:29 -07:00
Simon Willison
f3f38c0c02
Initial experimental response.reply() method
2023-07-01 13:29:54 -07:00
Simon Willison
664fca165b
.stream is now in base Response class
2023-07-01 13:29:27 -07:00
Simon Willison
183b647351
Removed PaLM 2 vertex model
...
It lives here now: https://github.com/simonw/llm-palm
Refs #20
2023-07-01 13:27:59 -07:00
Simon Willison
feff460496
Fix for pydantic warning, refs #74
2023-07-01 11:56:35 -07:00
Simon Willison
9ac120fae4
Upgrade to pydantic 2 using bump-pydantic, refs #74
2023-07-01 11:53:54 -07:00
Simon Willison
9afc758cd7
Pass model to the Response
2023-07-01 11:29:41 -07:00
Simon Willison
6ef52172b0
Fixed timezone related test failure
2023-07-01 11:14:25 -07:00
Simon Willison
4d304d99e1
Fixed import error in llm openai models
2023-07-01 11:12:06 -07:00
Simon Willison
1b3f14fe89
Move default plugins into llm/default_plugins
2023-07-01 11:10:30 -07:00
Simon Willison
714b867e92
-s shortcut for --system, closes #69
2023-07-01 10:46:20 -07:00
Simon Willison
c679d4d99e
llm openai models command, closes #70
2023-07-01 10:39:24 -07:00
Simon Willison
c1938a4987
Fix for --key being beaten by env variable, closes #71
2023-07-01 10:33:49 -07:00
Simon Willison
52cedc03e0
CLI now uses new prompt/stream methods
2023-07-01 09:09:19 -07:00
Simon Willison
ffe4b6706d
Model.stream() and .get_key() methods
2023-07-01 09:03:07 -07:00
Simon Willison
13fb4c2966
Refactor Template into templates.py
2023-07-01 08:27:45 -07:00
Simon Willison
5e056fad8a
Implemented PaLM 2, to test out new plugin hook - refs #20
2023-06-26 08:25:01 -07:00
Simon Willison
5103f77c40
New mechanism for handling API keys for models
2023-06-26 08:05:48 -07:00
Simon Willison
274126d9f8
WIP register_models() plugin hook, refs #53
2023-06-26 07:43:46 -07:00
Simon Willison
9f1085eece
--save now stores -p as default parameters, closes #58
2023-06-23 07:51:50 -07:00
Sébastien De Revière
059bc1a5fe
Handle error when no templates are found ( #47 )
...
Thanks, @sderev
2023-06-23 07:38:13 -07:00
Galen O’Hanlon
97daa001aa
fix typo: 4-32k, not 4-16k ( #61 )
2023-06-23 07:37:09 -07:00
Simon Willison
e72311982d
Added 4-16k shortcut
2023-06-21 07:45:22 +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
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