replicate-js icon indicating copy to clipboard operation
replicate-js copied to clipboard

Unofficial JS Client for the Replicate API

Results 9 replicate-js issues
Sort by recently updated
recently updated
newest added

The `openai/whisper` model requires a `audio` (a file, usually an .mp3 file) argument. The [documentation on `replicate.com`](https://replicate.com/openai/whisper/versions/30414ee7c4fffc37e260fcab7842b5be470b9b840f2b608f5baa9bbef9a259ed/api) for `python` shows: ```python 'audio': open("path/to/file", "rb") ``` How can I provide this...

### Bug description The link for **Community (ask and answer usage questions)** in the [new issues templates](https://github.com/nicholascelestin/replicate-js/issues/new/choose) points to https://www.gitpod.io/community. Is that the right URL? It does not seem related...

bug

## Description When model is not found (or undefined) this is the error: ``` file:////node_modules/replicate-js/replicate.js:77 const mostRecentVersion = modelVersions[0]; ``` This PR changes that to eg ``` file:////node_modules/replicate-js/replicate.js:70 throw new...

I have a huge project and always hit problems trying to use "pure" ESM. Mainly because I'm using typescript, which just doesn't seem to work well with ESM... I know...

When running just the html and proxy a "Replicate is not a constructor" error is thrown as it also contains some HTTP object. The constructor is under the "default" key....

In the Replicate JavaScript browser example, [this line](https://github.com/nicholascelestin/replicate-js/blob/02a5c8558230d56b800cb6865e7ecc37c153da59/examples/browser.html#L11) fails with ``` test.html:12 Uncaught TypeError: Replicate is not a constructor ```

### Bug description Just wondering how the predictor works. I was thinking I was going to get data similar to the Replicate log, but i just get an occasional null...

bug

Hi! Thanks for putting this together. I was wondering if it would be possible to return more specific error codes? Right now I get a null response sometimes and it's...

Perhaps using https://github.com/adobe/node-fetch-retry