Commit graph

294 commits

Author SHA1 Message Date
Simon Willison
77cf56e54a
Initial CLI support and plugin hook for embeddings, refs #185
* Embeddings plugin hook + OpenAI implementation
* llm.get_embedding_model(name) function
* llm embed command, for returning embeddings or saving them to SQLite
* Tests using an EmbedDemo embedding model
* llm embed-models list and emeb-models default commands
* llm embed-db path and llm embed-db collections commands
2023-08-27 22:24:10 -07:00
Simon Willison
cee5b06604 'just push' command pushes to git only if test/lint passes 2023-08-27 20:20:39 -07:00
Simon Willison
b5260b4eb0
llm-anyscale-endpoints
!stable-docs
2023-08-23 13:46:48 -07:00
Simon Willison
7744cf9b79
llm-openrouter in plugin directory
Closes #168

!stable-docs
2023-08-21 00:05:35 -07:00
Simon Willison
ebe2e08a1f Release 0.8
Refs #111, #147, #153, #154, #155, #158, #160, #167, #173, #174
2023-08-20 23:53:09 -07:00
Simon Willison
9547b51fa3 sqlite-utils>=3.35.0
For this fix:
- https://github.com/simonw/sqlite-utils/issues/577

Refs #60, #116, #123
2023-08-20 23:33:42 -07:00
Simon Willison
dff36f0edc Change of policy: keys.json over-rides environment variables, closes #158 2023-08-20 23:27:21 -07:00
Simon Willison
341dbce2d5 Fix error on pydantic 1.10.2 - refs #169 2023-08-20 23:16:10 -07:00
Simon Willison
e959026051 llm keys command, closes #174 2023-08-20 23:11:47 -07:00
Simon Willison
85e18389b5 Removed rogue pdb.set_trace() I left in
Mistake made in 0eeb8393ca
2023-08-20 23:04:52 -07:00
Simon Willison
b92c940e30 Usage documentation no longer assumes OpenAI 2023-08-20 23:01:52 -07:00
Simon Willison
c8e9565f47 Combine piped and argument prompts, closes #153 2023-08-20 22:57:29 -07:00
Simon Willison
8edd438f74 Ignore pytest Pydantic warnings, refs #169 2023-08-20 22:43:25 -07:00
Simon Willison
1212cc9221 Related tools documentation, closes #111 2023-08-20 22:34:29 -07:00
Simon Willison
6aa2990892 This is directory.md now, refs #173 2023-08-20 22:24:21 -07:00
Simon Willison
6155f12c9c Move plugin directory into LLM repo, refs #173 2023-08-20 22:17:16 -07:00
Simon Willison
5c657b35d9 Clear docs/_build before building docs
Without this I found things like table of contents might not be fully rebuilt.
2023-08-20 22:16:33 -07:00
Simon Willison
14536f447b Link to llm tag on my blog
Also test the new `stable` docs mechanism.
2023-08-20 21:54:17 -07:00
Simon Willison
edb1d4f01c Release 0.7.1
Refs #12
2023-08-20 21:33:22 -07:00
Simon Willison
83592f176d
Create stable branch from most recent release tag
Refs https://github.com/simonw/simonw-readthedocs-experiments/issues/2
2023-08-20 21:31:49 -07:00
Simon Willison
d736a07ddf
Stable documentation workflow
Refs https://github.com/simonw/simonw-readthedocs-experiments/issues/1
2023-08-20 21:02:41 -07:00
Simon Willison
3e39af0d67 Mention prompt templates in system prompts docs, closes #131 2023-08-19 22:23:08 -07:00
Simon Willison
f5ec484cf2 Fixed documentation heading level, refs #154 2023-08-19 22:12:02 -07:00
Simon Willison
091984cca2 Refactor to use llm.set_alias() / remove_alias(), closes #154 2023-08-19 22:11:19 -07:00
Simon Willison
c290b44d45 llm.remove_alias() function, refs #154 2023-08-19 22:06:51 -07:00
Simon Willison
2d73e6c8d1 Test set_alias(..., alias) too, refs #154 2023-08-19 22:02:58 -07:00
Simon Willison
8cdcf1e689 llm.set_alias() function, refs #154 2023-08-19 22:01:29 -07:00
Simon Willison
0cd9333054 llm aliases defaults to llm aliases list, refs #154
Refs #167
2023-08-19 21:48:20 -07:00
Simon Willison
adb900be1a Restore extra=forbid for Template, refs #169 2023-08-19 21:42:32 -07:00
Simon Willison
5bf0f4165f Removed incomplete model_config feature, refs #169 2023-08-19 21:38:09 -07:00
Simon Willison
a105d98b58 Ignore mypy error, refs #169 2023-08-19 21:35:35 -07:00
Simon Willison
36f8ffc2a1 Test for llm models --options, refs #169 2023-08-19 21:26:23 -07:00
Simon Willison
0537622f40 Fix llm models --options in pydantic 1, refs #169 2023-08-19 21:21:03 -07:00
Simon Willison
7ca923137b Try a different matrix syntax, refs #169 2023-08-19 21:05:17 -07:00
Simon Willison
14a91efbad Fixes for Pydantic 1, including matrix test - refs #169
Also refs #147
2023-08-19 20:59:30 -07:00
Chris Mungall
740a8e8344
Allow for use of Pydantic v1 as well as v2. (#147)
* Allow for use of Pydantic v1 as well as v2.

Use v1-style configuration. While this is officially
deprecated (https://docs.pydantic.dev/latest/usage/model_config/),
it is supported by v2. I would assume this support will remain
for a while, this will help ease the transition to v2
2023-08-19 20:50:59 -07:00
dependabot[bot]
bdae409a92
Bump Furo and Sphinx
* Bump the python-packages group with 1 update

Bumps the python-packages group with 1 update: [furo](https://github.com/pradyunsg/furo).

- [Release notes](https://github.com/pradyunsg/furo/releases)
- [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md)
- [Commits](https://github.com/pradyunsg/furo/compare/2023.07.26...2023.08.17)

---
updated-dependencies:
- dependency-name: furo
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-packages
...

Signed-off-by: dependabot[bot] <support@github.com>

* sphinx==7.2.2

According to tip here:
- https://github.com/pradyunsg/furo/discussions/693#discussioncomment-6753629

Refs #161

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Simon Willison <swillison@gmail.com>
2023-08-19 20:13:54 -07:00
Simon Willison
0eeb8393ca llm models and llm templates default to list, closes #167 2023-08-19 20:04:14 -07:00
Simon Willison
9518515de0 Extra header configuration for openrouter.ai, refs #165 2023-08-19 18:53:49 -07:00
Simon Willison
075d9af3b6 Test for migrations fix in #162 2023-08-19 13:17:47 -07:00
Simon Willison
c4dbb62e68 Fix for broken migrations on sqlite-utils 3.35, refs #162 2023-08-19 13:09:41 -07:00
Simon Willison
d31d97e06f Refactor get_key() with docs and better varible names
The actual logic is unchanged, but it is a lot easier to understand what it does now.

Refs #158
2023-08-17 15:03:55 -07:00
Simon Willison
a4f55e9987 --cid/--conversation option, docs for search - refs #160 2023-08-17 14:32:43 -07:00
Simon Willison
a2eab1b0f7 Fixed test failure, refs #160 2023-08-17 14:17:39 -07:00
Simon Willison
79d09936cb Lose the indentation for log output, refs #160 2023-08-17 14:12:57 -07:00
Simon Willison
113df5dd87 llm logs now defaults to text output, use --json for JSON, use -c X for specific conversation
Refs #160
2023-08-17 13:57:18 -07:00
Simon Willison
8bf27b34ee
llm.UnknownModelError docs, closes #155 2023-08-13 14:57:35 -07:00
Simon Willison
4f7629c309
Fixed typo in changelog 2023-08-12 10:20:08 -07:00
nakamichi
a802bfbbb0
Fix a typo (#148) 2023-08-12 09:40:14 -07:00
Simon Willison
3bfcfd57d2 Release notes for 0.7 2023-08-12 09:38:58 -07:00