Simon Willison
Simon Willison
See: - #776
Yeah, it's time. I continued supporting both because I was worried about LLM needing to run in environments that were committed to Pydantic v1 - but as of Feb 2025...
I spent $1 on the new Claude Code tool getting it to implement this upgrade for me, which seemed to work. PR incoming. https://gist.github.com/simonw/e14f5217c85f0557427fe3f3d7750f03
Trying a different approach: https://docs.pydantic.dev/latest/migration/#code-transformation-tool ```bash uvx bump-pydantic llm ``` That _didn't_ cost $1 and gave me this diff: ```diff diff --git a/llm/models.py b/llm/models.py index c7e3c72..bb5300d 100644 --- a/llm/models.py +++...
Posted in that PR: > It's important that `echo "prompt" | llm` continues to work, so I'm not going to accept this change. But... I do agree that having `llm`...
Before I update the docs I'll check `llm-sentence-transformers` installs cleanly on the Homebrew version. But... that's blocked on Homebrew releasing a new build that includes this fix: - https://github.com/simonw/llm/issues/531
I'll remove the warning as soon as I have demonstrated `llm install llm-sentence-transformers` working on a fresh Homebrew installation.
> Curious if it's possible to save embeddings in an existing db, rather than a dedicated SQLite database. It's not, but one of the reasons I'm building everything around SQLite...
I tried working around this like so: ```diff diff --git a/src/env_templates.py b/src/env_templates.py index 73f288b..39f31c9 100644 --- a/src/env_templates.py +++ b/src/env_templates.py @@ -41,7 +41,7 @@ TEMPLATES = { workdir="/app", image=( # modal.Image.from_registry("rust:slim",...
Also this deprecation warning: > /root/src/main.py:26: DeprecationError: 2024-04-29: The use of "Stub" has been deprecated in favor of "App". This is a pure name change with no other implications.