simonw / llm

Access large language models from the command-line
https://llm.datasette.io
Apache License 2.0
4.85k stars 272 forks source link

register_embedding_models() missing from plugin-hooks docs page #627

Open simonw opened 1 week ago

simonw commented 1 week ago

https://llm.datasette.io/en/stable/plugins/plugin-hooks.html

https://github.com/simonw/llm/blob/d34eac57d39c20d829a0c090cdda9e64705d9291/docs/plugins/plugin-hooks.md#L9-L46

But there are three hooks:

https://github.com/simonw/llm/blob/d34eac57d39c20d829a0c090cdda9e64705d9291/llm/hookspecs.py#L8-L20

register_embedding_models() is documented here but it should be in the list of hooks too. https://llm.datasette.io/en/stable/embeddings/writing-plugins.html