Simon Willison
7bef414de7
Nicer error message for unknown models with -c mode, closes #92
2023-07-11 19:29:54 -07:00
Simon Willison
c7271dd6b4
llm.ModelError class, refs #96
2023-07-11 10:52:48 -07:00
Simon Willison
2554a06e36
Docs for llm.user_dir(), closes #83
2023-07-11 07:43:57 -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
b38b8314b9
Initial working implementation of conversations, refs #85
2023-07-10 22:37:45 -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
04568115b8
Options base class is now llm.Options not Model.Options
2023-07-05 20:47:36 -07:00
Simon Willison
52add96ec1
Rough initial version of new logging, to log2 table
2023-07-02 16:35:36 -07:00
Simon Willison
13fb4c2966
Refactor Template into templates.py
2023-07-01 08:27:45 -07:00
Simon Willison
274126d9f8
WIP register_models() plugin hook, refs #53
2023-06-26 07:43:46 -07: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
a396950f79
Initial plugin framework and register_commands(cli) hook, refs #49
2023-06-17 17:42:13 +01:00
Simon Willison
144ffc3f6b
Prompt templates
...
Closes #23
2023-06-17 08:40:46 +01: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