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
9a226a8b43
Discord badges, refs #97
2023-07-11 18:56:38 -07:00
Simon Willison
19ba1a3099
Improvements to Response.fake() plus __repr__ for some classes
2023-07-11 15:14:52 -07:00
Simon Willison
abfc9c69dc
Response.fake() method
...
I'm using this in https://github.com/simonw/llm-gpt4all/issues/4
2023-07-11 11:08:15 -07:00
Simon Willison
f7364f406e
Docs for llm.ModelError, refs #96
2023-07-11 10:55:28 -07:00
Simon Willison
18a89d8bb8
Removed obsolete OptionsError class
2023-07-11 10:53:04 -07:00
Simon Willison
c7271dd6b4
llm.ModelError class, refs #96
2023-07-11 10:52:48 -07:00
Simon Willison
3ee67c94e8
Updated tutorial for conversations, closes #94
2023-07-11 08:58:04 -07:00
Simon Willison
255f768707
Rename ._response_json to .response_json
2023-07-11 08:31:38 -07:00
Simon Willison
2554a06e36
Docs for llm.user_dir(), closes #83
2023-07-11 07:43:57 -07:00
Simon Willison
0d6f9e7038
Documented conversations for Python API, closes #85
...
Also removed now obsolete internal concepts documentation, may add something like this again later.
2023-07-11 07:33:42 -07:00
Simon Willison
56016aef59
Include conversations table in docs schema, refs #91
2023-07-11 07:21:22 -07:00
Simon Willison
2d3ebe7fe1
llm logs now uses new DB schema, refs #91
2023-07-11 07:21:22 -07:00
Simon Willison
54de7c4134
Updated help.md
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
21e6d54365
Remove unused imports
2023-07-11 00:09:35 -07:00
Simon Willison
23eeb0f322
Remove experimental Model.chain() method, refs #90
2023-07-10 22:47:34 -07:00
Simon Willison
b38b8314b9
Initial working implementation of conversations, refs #85
2023-07-10 22:37:45 -07:00
Simon Willison
bb7813e0f5
Removed obsolete Model.Response class
2023-07-10 21:58:10 -07:00
Simon Willison
d2d7b6e808
Fix a warning about _static in docs builds
2023-07-10 21:45:07 -07:00
Simon Willison
aa37d3307f
Example for logit_bias, closes #36
2023-07-10 15:43:44 -07:00
Simon Willison
bee1817284
Added a . for consistency
2023-07-10 15:32:07 -07:00
Simon Willison
898418a518
Fix for cogapp on Python 3.8, refs #82
2023-07-10 14:12:20 -07:00
Simon Willison
9f25cde60e
Show cog on usage.md to help debug #82
2023-07-10 14:00:21 -07:00
Simon Willison
18f34b5df2
How to add docs to options, refs #82
2023-07-10 13:51:33 -07:00
Simon Willison
8f7c3a9797
llm models list --options - closes #82
2023-07-10 13:40:27 -07:00
Simon Willison
a2a97b6c7d
Removed duplicated tutorial page
2023-07-10 13:39:59 -07:00
Simon Willison
d5743641e6
Expanded plugins/ docs into several pages
...
Refs #87
2023-07-10 12:48:25 -07:00
Simon Willison
4a46bf40b6
Capitalize Homepage in example pyproject.toml
2023-07-10 12:25:36 -07:00
Simon Willison
35827a5d43
Basic Python API usage instructions
...
Closes #75
2023-07-10 11:42:23 -07:00
Simon Willison
6cdbc7a270
Show error for --continue mode, remove deleted code
2023-07-10 08:34:36 -07:00
Simon Willison
02a930dd8e
Updated Gist example for tutorial
2023-07-10 08:31:50 -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
199f7e0767
Renamed iter_prompt() to execute() and updated tutorial
2023-07-10 07:59:12 -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
282b3af45d
Run black at end of just fix
...
To ensure any changes made by ruff --fix are reformatted.
2023-07-10 07:41:49 -07:00
Simon Willison
ccda1eec73
Switch tutorial from setup.py to pyproject.toml
...
Refs #53
Based on https://til.simonwillison.net/python/pyproject
Closes #81
2023-07-08 15:34:19 -07:00
Simon Willison
902cf6010c
Fixed type hint on Prompt
2023-07-07 20:38:53 -07:00
Simon Willison
5e1b528ebb
Snappier tutorial title
2023-07-07 08:13:45 -07:00
Simon Willison
40f3892e19
Fix lin to Gist in tutorial
2023-07-06 21:11:05 -07:00
Simon Willison
94b13ab872
types-click
2023-07-06 20:45:10 -07:00
Simon Willison
c1e3cbf2e9
Detailed tutorial on writing plugins
2023-07-06 20:38:12 -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
04568115b8
Options base class is now llm.Options not Model.Options
2023-07-05 20:47:36 -07:00
Simon Willison
b4248df72a
Markov plugin now lives in llm-markov repo
2023-07-05 20:46:53 -07:00
Simon Willison
4611bff412
iter_prompt() now takes prompt
2023-07-05 20:46:17 -07:00
Simon Willison
c08344f986
llm logs now decodes JSON for prompt_json etc
2023-07-05 18:31:38 -07:00
Simon Willison
b88906d459
Default __str__ method for models
2023-07-05 18:26:16 -07:00