five-on-it / apps/creator/src/claude / ClaudeOptions
Interface: ClaudeOptions
Defined in: apps/creator/src/claude.ts:267
How to reach Claude, and with which models.
Properties
apiKey
apiKey:
string
Defined in: apps/creator/src/claude.ts:269
The API key (never a creator's own: the platform's, ANTHROPIC_API_KEY).
backoffMs?
optionalbackoffMs?:number
Defined in: apps/creator/src/claude.ts:278
fetch?
optionalfetch?: {(input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Defined in: apps/creator/src/claude.ts:280
The HTTP client.
Call Signature
(
input,init?):Promise<Response>
Parameters
input
URL | RequestInfo
init?
RequestInit
Returns
Promise<Response>
Call Signature
(
input,init?):Promise<Response>
Parameters
input
string | URL | Request
init?
RequestInit
Returns
Promise<Response>
models
models: readonly
string[]
Defined in: apps/creator/src/claude.ts:271
The models in order: the first is asked, the others are its fallbacks.
priced?
optionalpriced?:SetPrice
Defined in: apps/creator/src/claude.ts:273
The price of a model the table does not know (FOI_CREATOR_PRICE).
retries?
optionalretries?:number
Defined in: apps/creator/src/claude.ts:277
How often a busy model is tried again (2 by default), and the first wait (ms).
url?
optionalurl?:string
Defined in: apps/creator/src/claude.ts:275
The endpoint (Anthropic's by default).