wagtail / wagtail-ai

Get help with your Wagtail content using AI superpowers.
https://wagtail-ai.readthedocs.io/latest
MIT License
129 stars 22 forks source link

Feedback on LLM Python API #56

Open simonw opened 7 months ago

simonw commented 7 months ago

I just saw you're using https://llm.datasette.io for this, which is really cool!

It's still pre-1.0 and I'm not yet 100% sure I've got the Python library API right. As such I'd love to get your feedback on that aspect of the library - is there anything that would make it easier to use?

simonw commented 7 months ago

Looks like everything your are using is encapsulated in this code: https://github.com/wagtail/wagtail-ai/blob/c8539f78902731647334c9ac775868dfe74222bb/src/wagtail_ai/ai/llm.py#L40-L60

tomusher commented 7 months ago

Thanks for checking in @simonw!

We've been very pleased with llm, it's made it very easy for us to support loads of models in wagtail-ai. There's a few things we've stumbled with, but nothing that's been a major blocker so far. Here's a few off the top of my head:

tm-kn commented 7 months ago

Thanks for reaching out @simonw, and that's excellent feedback @tomusher.

One point from me would be:

tomdyson commented 7 months ago

Hi @simonw, thanks for llm! wagtail-ai started with just support for OpenAI, then @tomusher wrote https://github.com/tomusher/every-ai to abstract other AI platform APIs, then we decided to adopt a more actively developed wrapper and picked llm.