Skip to content

five-on-it / apps/creator/src/claude / ClaudeOptions

Interface: ClaudeOptions ​

Defined in: apps/creator/src/claude.ts:264

How to reach Claude, and with which models.

Properties ​

apiKey ​

apiKey: string

Defined in: apps/creator/src/claude.ts:266

The API key (never a creator's own: the platform's, ANTHROPIC_API_KEY).


backoffMs? ​

optional backoffMs?: number

Defined in: apps/creator/src/claude.ts:275


fetch? ​

optional fetch?: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Defined in: apps/creator/src/claude.ts:277

The HTTP client.

Call Signature ​

(input, init?): Promise<Response>

MDN Reference

Parameters ​
input ​

URL | RequestInfo

init? ​

RequestInit

Returns ​

Promise<Response>

Call Signature ​

(input, init?): Promise<Response>

MDN Reference

Parameters ​
input ​

string | URL | Request

init? ​

RequestInit

Returns ​

Promise<Response>


models ​

models: readonly string[]

Defined in: apps/creator/src/claude.ts:268

The models in order: the first is asked, the others are its fallbacks.


priced? ​

optional priced?: SetPrice

Defined in: apps/creator/src/claude.ts:270

The price of a model the table does not know (FOI_CREATOR_PRICE).


retries? ​

optional retries?: number

Defined in: apps/creator/src/claude.ts:274

How often a busy model is tried again (2 by default), and the first wait (ms).


url? ​

optional url?: string

Defined in: apps/creator/src/claude.ts:272

The endpoint (Anthropic's by default).