File tree Expand file tree Collapse file tree 5 files changed +327
-151
lines changed Expand file tree Collapse file tree 5 files changed +327
-151
lines changed Original file line number Diff line number Diff line change @@ -455,6 +455,18 @@ const response = await replicate.models.list();
455455}
456456```
457457
458+ ### ` replicate.models.search `
459+
460+ Search for public models on Replicate.
461+
462+ ``` js
463+ const response = await replicate .models .search (query);
464+ ```
465+
466+ | name | type | description |
467+ | ------- | ------ | -------------------------------------- |
468+ | ` query ` | string | ** Required** . The search query string. |
469+
458470### ` replicate.models.create `
459471
460472Create a new public or private model.
Original file line number Diff line number Diff line change @@ -281,6 +281,7 @@ declare module "replicate" {
281281 version_id : string
282282 ) : Promise < ModelVersion > ;
283283 } ;
284+ search ( query : string ) : Promise < Page < Model > > ;
284285 } ;
285286
286287 predictions : {
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ class Replicate {
9898 list : models . versions . list . bind ( this ) ,
9999 get : models . versions . get . bind ( this ) ,
100100 } ,
101+ search : models . search . bind ( this ) ,
101102 } ;
102103
103104 this . predictions = {
You can’t perform that action at this time.
0 commit comments