File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import Replicate from "replicate";
20
20
const replicate = new Replicate ({
21
21
// get your token from https://replicate.com/account
22
22
auth: process .env .REPLICATE_API_TOKEN ,
23
- userAgent: " my-app/1.2.3" ,
24
23
});
25
24
```
26
25
@@ -71,11 +70,11 @@ prediction = await replicate.wait(prediction);
71
70
const replicate = new Replicate (options);
72
71
```
73
72
74
- | name | type | description |
75
- | ------------------- | ------ | ---------------------------------------- |
76
- | ` options.auth ` | string | ** Required** . API access token |
77
- | ` options.userAgent ` | string | ** Required ** . Identifier of your app |
78
- | ` options.baseUrl ` | string | Defaults to https://api.replicate.com/v1 |
73
+ | name | type | description |
74
+ | ------------------- | ------ | --------------------------------------------------------------------------------- |
75
+ | ` options.auth ` | string | ** Required** . API access token |
76
+ | ` options.userAgent ` | string | Identifier of your app. Defaults to ` replicate-javascript/${packageJSON.version} ` |
77
+ | ` options.baseUrl ` | string | Defaults to https://api.replicate.com/v1 |
79
78
80
79
### ` replicate.models.get `
81
80
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ type Identifier = `${string}/${string}:${string}`;
3
3
declare module "replicate" {
4
4
export interface ReplicateOptions {
5
5
auth : string ;
6
- userAgent : string ;
6
+ userAgent ? : string ;
7
7
baseUrl ?: string ;
8
8
}
9
9
You can’t perform that action at this time.
0 commit comments