Skip to content
Merged
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
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -499,22 +499,12 @@ const quick = client.withOptions({ timeout: 10_000, maxRetries: 0 });
await quick.voices.get(voiceId);
```

### Environments

The client talks to production by default. Point it elsewhere with `baseURL` or
`FINESSE_BASE_URL`:

```ts
const client = new Finesse({ baseURL: "https://finesse-proxy.example.com" });
```

### Configuration

| Option | Environment variable | Default |
| ------------------------- | -------------------- | ------------------------------------- |
| `apiKey` | `FINESSE_API_KEY` | required, unless `accessToken` |
| `accessToken` | | none (a short-lived `fin_tok_` token) |
| `baseURL` | `FINESSE_BASE_URL` | `https://fi.production.flamapis.com` |
| `timeout` | | 120 000 ms |
| `maxRetries` | | 2 |
| `defaultHeaders` | | none |
Expand Down
Loading