simonw / llm-replicate

LLM plugin for models hosted on Replicate
Apache License 2.0
59 stars 6 forks source link

Vendor replicate-python and ship to PyPI #3

Closed simonw closed 1 year ago

simonw commented 1 year ago

My attempt to ship this failed. I think I need to vendor the replicate-python library.

simonw commented 1 year ago

The main change I had to make to the Replicate library was removing the bit that tried to look up its own version: https://github.com/replicate/replicate-python/blob/main/replicate/__about__.py

Plus I applied my own fix: https://github.com/simonw/replicate-python/commit/8715c3830a2a6c6a41df86501e09f7d46ed51183

Hoping they merge my PR soon so I can un-vendor it again:

simonw commented 1 year ago

Shipped: https://pypi.org/project/llm-replicate/