Commit graph

91 commits

Author SHA1 Message Date
Simon Willison
7b46c17976 Release 0.24.1
Refs #879, #897
2025-04-08 13:40:04 -07:00
Simon Willison
7ad1ddab62 Release 0.24
Refs #617, #759, #809, #817, #819, #824, #825, #826, #829, #834, #835, #841, #843, #845, #853, #856, #857, #858, #880, #881, #886

Closes #882
2025-04-07 08:36:22 -07:00
Simon Willison
c28dd8fd2b Release 0.24a1
Refs #617, #863, #890
2025-04-06 17:39:59 -07:00
Simon Willison
f740a5cbbd
Fragments (#859)
* WIP fragments: schema plus reading but not yet writing, refs #617
* Unique index on fragments.alias, refs #617
* Fragments are now persisted, added basic CLI commands
* Fragment aliases work now, refs #617
* Improved help for -f/--fragment
* Support fragment hash as well
* Documentation for fragments
* Better non-JSON display of llm fragments list
* llm fragments -q search option
* _truncate_string is now truncate_string
* Use condense_json to avoid duplicate data in JSON in DB, refs #617
* Follow up to 3 redirects for fragments
* Python API docs for fragments= and system_fragments=
* Fragment aliases cannot contain a : - this is to ensure we can add custom fragment loaders later on, refs https://github.com/simonw/llm/pull/859#issuecomment-2761534692
* Use template fragments when running prompts
* llm fragments show command plus llm fragments group tests
* Tests for fragments family of commands
* Test for --save with fragments
* Add fragments tables to docs/logging.md
* Slightly better llm fragments --help
* Handle fragments in past conversations correctly
* Hint at llm prompt --help in llm --help, closes #868
* llm logs -f filter plus show fragments in llm logs --json
* Include prompt and system fragments in llm logs -s
* llm logs markdown fragment output and tests, refs #617
2025-04-05 17:22:37 -07:00
Simon Willison
6c9a8efb50
register_template_loaders plugin hook, closes #809
* Moved templates CLI commands next to each other
* llm templates loaders command
* Template loader tests
* Documentation for template loaders
2025-03-21 16:46:44 -07:00
Simon Willison
a7a9bc8323 Release 0.23
Refs #520, #766, #774, #775, #776, #777, #778, #780, #781, #782, #783, #784, #785, #788, #790, #791, #793, #794, #795, #796, #797, #798, #799, #800, #801, #806

Closes #803
2025-02-28 08:55:59 -08:00
Simon Willison
42122c79ba Release 0.23a0
Refs #776, #777
2025-02-26 17:05:13 -08:00
Simon Willison
849c65fe9d
Upgrade to Pydantic v2 (#775)
* Upgrade to Pydantic v2
* Stop testing against Pydantic v1

Closes #520
2025-02-26 10:05:54 -08:00
Simon Willison
e46cb7e761 Update docs to no longer mention PaLM
!stable-docs
2025-02-16 22:37:00 -08:00
Simon Willison
b8b030fc58 Release 0.22
Refs #737, #742, #744, #745, #748, #752
2025-02-16 20:34:48 -08:00
Simon Willison
deb8bc3b4f Upgrade to black>=25.1.0
Refs https://github.com/simonw/llm/issues/728#issuecomment-2628348988

Refs https://github.com/psf/black/issues/4571#issuecomment-2628355450
2025-01-31 13:18:41 -08:00
Simon Willison
f8dcc67455 Release 0.21
Refs #717, #728
2025-01-31 12:35:10 -08:00
Simon Willison
4c153ce675 Pin Black to get tests to pass, refs #728
See https://github.com/psf/black/issues/4571
2025-01-31 12:32:08 -08:00
Simon Willison
dc127d2a87 Release 0.20
Refs #654, #676, #677, #681, #688, #690, #700, #702, #709
2025-01-22 20:36:10 -08:00
Simon Willison
64179fa9e0 Use openai>=1.55.3 for issue #709 2025-01-18 14:11:21 -08:00
Simon Willison
b8e8052229 Release 0.19.1
Refs #667
2024-12-05 13:47:28 -08:00
Simon Willison
c018104083 Release 0.19
Refs #495, #610, #640, #641, #644, #653
2024-12-01 15:58:27 -08:00
Simon Willison
335b3e635a Release 0.19a2
Refs #640
2024-11-20 20:12:43 -08:00
Simon Willison
845322e970 Release 0.19a1
Refs #644
2024-11-19 21:28:01 -08:00
Simon Willison
02852fe1a5 Release 0.19a0
Refs #610, #641
2024-11-19 20:23:54 -08:00
Simon Willison
a6d62b7ec9 Release 0.18
Refs #507, #600, #603, #608, #611, #612, #614
2024-11-17 12:31:48 -08:00
Simon Willison
73823012ca Release 0.18a1
Refs #632
2024-11-14 15:10:39 -08:00
Simon Willison
041730d8b2 Release 0.18a0
Refs #507, #599, #600, #603, #608, #611, #612, #613, #614, #615, #616, #621, #622, #623, #626, #629
2024-11-13 17:55:28 -08:00
Simon Willison
ba75c674cb
llm.get_async_model(), llm.AsyncModel base class and OpenAI async models (#613)
- https://github.com/simonw/llm/issues/507#issuecomment-2458639308

* register_model is now async aware

Refs https://github.com/simonw/llm/issues/507#issuecomment-2458658134

* Refactor Chat and AsyncChat to use _Shared base class

Refs https://github.com/simonw/llm/issues/507#issuecomment-2458692338

* fixed function name

* Fix for infinite loop

* Applied Black

* Ran cog

* Applied Black

* Add Response.from_row() classmethod back again

It does not matter that this is a blocking call, since it is a classmethod

* Made mypy happy with llm/models.py

* mypy fixes for openai_models.py

I am unhappy with this, had to duplicate some code.

* First test for AsyncModel

* Still have not quite got this working

* Fix for not loading plugins during tests, refs #626

* audio/wav not audio/wave, refs #603

* Black and mypy and ruff all happy

* Refactor to avoid generics

* Removed obsolete response() method

* Support text = await async_mock_model.prompt("hello")

* Initial docs for llm.get_async_model() and await model.prompt()

Refs #507

* Initial async model plugin creation docs

* duration_ms ANY to pass test

* llm models --async option

Refs https://github.com/simonw/llm/pull/613#issuecomment-2474724406

* Removed obsolete TypeVars

* Expanded register_models() docs for async

* await model.prompt() now returns AsyncResponse

Refs https://github.com/simonw/llm/pull/613#issuecomment-2475157822

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-13 17:51:00 -08:00
Simon Willison
d7b395bb5b Release 0.17.1 2024-11-01 14:19:39 -07:00
Simon Willison
a44ba49c21 Release 0.17
Refs #587, #590, #591
2024-10-28 19:36:12 -07:00
Simon Willison
ba1ccb3a4a Release 0.17a0
Refs #587, #590
2024-10-28 15:46:52 -07:00
Simon Willison
758ff9ac17 Upgrade to pytest-httpx>=0.33.0 2024-10-28 15:41:34 -07:00
Simon Willison
6df00f92ff First working prototype of new attachments feature, refs #587 2024-10-28 15:41:34 -07:00
Andrew Wason
a466ddf3cd
Fix broken tests. Drop python 3.8. (#580)
* Fix broken tests.  Drop python 3.8.
* Test on Python 3.13 too

---------

Co-authored-by: Simon Willison <swillison@gmail.com>
2024-10-27 11:26:47 -07:00
Simon Willison
38239839ae
Release 0.16
Refs #552, #553, #554, #558, #567, #570, #573
2024-09-12 16:09:46 -07:00
Simon Willison
d075336c69 Release 0.15
Refs #515, #525, #536, #537
2024-07-18 12:31:14 -07:00
Simon Willison
aa8d2b9322 sqlite-utils>=3.37
Closes #531
2024-07-18 11:49:31 -07:00
Simon Willison
ab1cc4fd1f Release 0.14
Refs #404, #431, #470, #490, #491
2024-05-13 13:26:48 -07:00
Simon Willison
2040af8974 Pin minimum mypy version, refs #491 2024-05-13 13:00:37 -07:00
Simon Willison
8021e12aaa
Windows readline fix, plus run CI against macOS and Windows
* Run CI on Windows and macOS as well as Ubuntu, refs #407
* Use pyreadline3 on win32
* Back to fail-fast since we have a bigger matrix now
* Mark some tests as xfail on windows
2024-01-26 16:24:58 -08:00
Simon Willison
8e0aff6090 Release 0.13
Refs #325, #351, #373, #376, #394, #396, #397, #404

Closes #402
2024-01-26 14:32:23 -08:00
Simon Willison
214fcaaf86
Upgrade to run against OpenAI >= 1.0
* strategy: fail-fast: false - to help see all errors
* Apply latest Black

Refs #325
2024-01-25 22:00:44 -08:00
Simon Willison
d9d9bb38d7 Drop Python 3.7, add 3.8, fix pkg_resources warning, refs #378 2024-01-25 16:48:49 -08:00
Simon Willison
e9a6998ca3 Release 0.12
Refs #323, #324
2023-11-06 13:32:09 -08:00
Simon Willison
10c6cc2a8e Release 0.11.2
Refs #327
2023-11-06 12:06:50 -08:00
Simon Willison
deaa686d9c Pin to openai<1.0 - refs #327 2023-11-06 12:03:07 -08:00
Simon Willison
68ab5c2407 Release 0.11.1
Refs #317
2023-10-31 21:23:29 -07:00
Simon Willison
bf229945fe Release 0.11
Refs #273, #274, #275, #280, #284, #286
2023-09-18 23:35:04 -07:00
Simon Willison
356fcb72f6 NumPy decoding docs, plus extra tests for llm.encode/decode
!stable-docs

Refs https://discord.com/channels/823971286308356157/1128504153841336370/1151975583237034056
2023-09-14 14:01:47 -07:00
Simon Willison
e83d205778 Release 0.10
Refs #225, #229, #231, #254, #256, #259
2023-09-12 12:11:25 -07:00
Simon Willison
90ab024604 Release 0.10a1
Refs #229, #244, #247, #248, #254, #256, #259, #263
2023-09-11 22:57:54 -07:00
Simon Willison
b84f6f9ffd Docs for LLM_LOAD_PLUGINS, closes #256 2023-09-10 14:12:37 -07:00
Simon Willison
3c888082d4
click-default-group>=1.2.3
Refs:
- https://github.com/click-contrib/click-default-group/issues/21
2023-09-05 19:35:26 -07:00
Simon Willison
3533e7027d Release 0.10a0
Refs #225, #231
2023-09-04 23:40:39 -07:00