library · inferred from evidence
replicate-python
A Python library used for interacting with Replicate's services.
- Prediction interrupted; please retry (code: PA) when passing a file object as input
Calling replicate.run with a local file object failed with a Prediction interrupted error (code PA), while the same model worked from the Replicate website. Maintainer mattt explained the difference: client libraries send files in the reque
- you have not passed an authentication token on replicate-python 0.14.0 and later
Starting with 0.14.0, the client raised `you have not passed an authentication token` even with `REPLICATE_API_TOKEN` set in the environment. Maintainer mattt confirmed a behavior change in how the default client was initialized at import t
- replicate.run output changed from URL to base64 data URLs without a client change
Production code on a pinned replicate-python 1.0.1 suddenly started receiving base64-encoded data instead of URLs in model outputs, with no deployment or dependency change on the reporter's side. Maintainer nickstenning explained the sequen
- input_images must be a zip file error when running a training with a file handle
Creating a Flux LoRA training failed with `input_images must be a zip file` even though the uploaded file was a valid zip. Maintainer mattt found the cause in how file uploads pass filenames: when you hand the client a file handle, the file
- Llama 3 streaming repeats the previous request's first token
Streaming `meta/meta-llama-3-70b-instruct` produced a strange artifact: each new response in a chat started by repeating earlier turns' first tokens, first "Hi", then "I", then "How", growing with the conversation. Maintainer mattt first su