replicate / replicate-swift

Swift client for Replicate
https://replicate.com
Apache License 2.0
157 stars 33 forks source link

Fix pagination for models #65

Closed mattt closed 10 months ago

mattt commented 10 months ago

The Client.listModels() method doesn't pass the specified cursor parameter when fetching models. As a result, you can't enumerate beyond the initial page of results. This PR fixes this by passing the cursor parameter to the underlying fetch method.