文件历史

131 次代码提交

作者 SHA1 备注 提交日期
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 dd7036b530 Ability to set system prompt, refs #4 2023-08-01 21:53:16 -07:00
Simon Willison fda7978de8 Log finished response to database
The code for this is pretty messy but it works. Refs #4
2023-08-01 21:49:04 -07:00
Simon Willison ddcdd849ae Show detailed model name in options box, refs #4 2023-08-01 21:48:47 -07:00
Simon Willison ea9a31d808 Clear button, refs #4 2023-08-01 21:48:27 -07:00
Simon Willison 14efa506f5 Run prompts using selected model, executing in a thread, refs #4 2023-08-01 20:59:05 -07:00
Simon Willison 6c4bbeee92 Fixed unnecessary import 2023-08-01 20:59:05 -07:00
Simon Willison 5cb4c4a352 Initial llm web prototype, refs #4 2023-08-01 20:59:05 -07:00
Pavel Král 838484b1f3 Set min/max constraints to float arguments
* Add .idea/ to .gitignore
* Set min and max constraints to float parameters

Closes #115
2023-07-26 10:59:09 -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 cb41409e2b conversation_name should not have newlines, closes #110 2023-07-15 21:28:35 -07:00
Simon Willison 178af27d95 llm logs list -q/--query option, closes #109 2023-07-15 16:20:28 -07:00
Simon Willison 75e40e7077 Enable FTS indexes on responses prompt and response columns, refs #109 2023-07-15 16:03:35 -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 e2072f7044 Ability to register additional OpenAI-compatible models
Closes #107, closes #106
2023-07-15 10:01:03 -07:00
Simon Willison 58d1f9291d Don't use openai.api_key global, refs #107 2023-07-14 14:07:42 -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 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 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 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 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 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 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 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 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 902cf6010c Fixed type hint on Prompt 2023-07-07 20:38:53 -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