文件历史

28 次代码提交

作者 SHA1 备注 提交日期
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
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 255f768707 Rename ._response_json to .response_json 2023-07-11 08:31:38 -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 8f7c3a9797 llm models list --options - closes #82 2023-07-10 13:40:27 -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 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 6ef6b343a9 Improved how keys work, execute() now has default implementation 2023-07-05 18:25:57 -07:00
Simon Willison 3136948408 Moved things into inner classes, log_message is now defined on base Response 2023-07-03 21:25:19 -07:00
Simon Willison 345ad0d2dc Implemented new logs database schema 2023-07-03 07:27:47 -07:00
Simon Willison b1c51df3f1 New LogMessage design, plus Response.json() method 2023-07-03 06:46:51 -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 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 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