API Reference
ToCurlOptions
Defined in: observability/to-curl.ts:23
Options for toCurl.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
apiKeyEnv? | string | Name of the env var holding the API key, referenced as $NAME in the Authorization header — so the key itself never lands in the command. Default "API_KEY". | observability/to-curl.ts:33 |
baseURL | string | Endpoint base URL, e.g. "https://api.featherless.ai/v1" (a trailing slash is fine). | observability/to-curl.ts:25 |
path? | string | Request path appended to baseURL. Default "/chat/completions". | observability/to-curl.ts:27 |
pretty? | boolean | Pretty-print the JSON body (2-space indent) so the command is easy to read. Single quotes preserve the newlines, so it stays runnable. Default true; set false for a compact one-liner (handy for scripting or -d @file). | observability/to-curl.ts:44 |
stream? | boolean | Override the body's stream flag. Pass false for a single JSON response that's easy to read when replayed by hand. Omit to keep the body as captured. | observability/to-curl.ts:38 |