Simon Willison
efbd6178d4
llm aliases list command, refs #151
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
Test / test (3.9) (push) Has been cancelled
2023-08-11 22:55:59 -07:00
Simon Willison
93a5afde0a
Initial --help for llm web, refs #4
2023-08-01 21:56:44 -07:00
Simon Willison
5cb4c4a352
Initial llm web prototype, refs #4
2023-08-01 20:59:05 -07:00
Sherwin Daganato
531d188199
Fix: Prevent TypeError in llm templates list for templates with empty prompts ( #132 )
2023-07-26 10:46:58 -07:00
Simon Willison
65d16663f5
Fix bug in --editable, closes #136
2023-07-25 22:21:20 -07:00
Simon Willison
178af27d95
llm logs list -q/--query option, closes #109
2023-07-15 16:20:28 -07:00
Simon Willison
ed8cd776a4
llm logs list -m model_id/alias option, closes #108
2023-07-15 15:55:13 -07:00
Simon Willison
54881ebfd5
Remove init-db command, refs #68
2023-07-11 21:38:14 -07:00
Simon Willison
fa67b3fdaf
--log option, closes #68
2023-07-11 20:18:16 -07:00
Simon Willison
d2fcff3f3a
llm logs on / off commands, refs #98
2023-07-11 19:48:16 -07:00
Simon Willison
875c6a9669
Initial llm logs status command, refs #98
2023-07-11 19:38:27 -07:00
Simon Willison
7bef414de7
Nicer error message for unknown models with -c mode, closes #92
2023-07-11 19:29:54 -07:00
Simon Willison
2d3ebe7fe1
llm logs now uses new DB schema, refs #91
2023-07-11 07:21:22 -07:00
Simon Willison
88d839fa85
Create conversations and responses tables and write to them, refs #91
2023-07-11 07:21:22 -07:00
Simon Willison
898418a518
Fix for cogapp on Python 3.8, refs #82
2023-07-10 14:12:20 -07:00
Simon Willison
8f7c3a9797
llm models list --options - closes #82
2023-07-10 13:40:27 -07:00
Simon Willison
6cdbc7a270
Show error for --continue mode, remove deleted code
2023-07-10 08:34:36 -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
ae87f978bd
Moved iter_prompt from Response to Model, moved a lot of other stuff
...
- Moved a whole bunch of things from llm/cli.py into llm/__init__.py
- Switched plugin listings to use importlib.metadata to avoid deprecation warning
- iter_prompt() is now a method on Model, not on Response
2023-07-10 07:45:11 -07:00
Simon Willison
3d5c9b2d3b
Read prompt after validating options
...
This means that if you do this:
llm -m markov -o length -1
You will see an error message rather than have the command hang
waiting for a prompt to be entered on stdin.
2023-07-06 19:57:04 -07:00
Simon Willison
c08344f986
llm logs now decodes JSON for prompt_json etc
2023-07-05 18:31:38 -07:00
Simon Willison
6ef6b343a9
Improved how keys work, execute() now has default implementation
2023-07-05 18:25:57 -07:00
Simon Willison
f193468f76
llm install -e/--editable option
2023-07-05 17:58:19 -07:00
Simon Willison
23886e04ae
Better error message display
...
Refs https://github.com/pydantic/pydantic/issues/6441
2023-07-05 16:36:38 -07:00
Simon Willison
49e4d688c6
Removed .stream() method in favor of .prompt(stream=False)
2023-07-04 07:50:31 -07:00
Simon Willison
345ad0d2dc
Implemented new logs database schema
2023-07-03 07:27:47 -07:00
Simon Willison
61dd8afc60
Drop the debug field from the logs, combine chunks from stream
2023-07-03 06:39:54 -07:00
Simon Willison
84b99f8baf
-o/--option, implemented for OpenAI models - closes #63
2023-07-02 17:42:22 -07:00
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
9a180e65a8
llm models default command, plus refactored env variables
...
Closes #76
Closes #31
2023-07-01 14:01:29 -07:00
Simon Willison
feff460496
Fix for pydantic warning, refs #74
2023-07-01 11:56:35 -07:00
Simon Willison
714b867e92
-s shortcut for --system, closes #69
2023-07-01 10:46:20 -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
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
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