Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,18 @@ const response = await replicate.models.list();
}
```

### `replicate.models.search`

Search for public models on Replicate.

```js
const response = await replicate.models.search(query);
```

| name | type | description |
| ------- | ------ | -------------------------------------- |
| `query` | string | **Required**. The search query string. |

### `replicate.models.create`

Create a new public or private model.
Expand Down
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ declare module "replicate" {
version_id: string
): Promise<ModelVersion>;
};
search(query: string): Promise<Page<Model>>;
};

predictions: {
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ class Replicate {
list: models.versions.list.bind(this),
get: models.versions.get.bind(this),
},
search: models.search.bind(this),
};

this.predictions = {
Expand Down
Loading