five-on-it / apps/creator/src/claude / ClaudeOptions
Interface: ClaudeOptions
Defined in: apps/creator/src/claude.ts:223
How to reach Claude, and with which models.
Properties
apiKey
apiKey:
string
Defined in: apps/creator/src/claude.ts:225
The API key (never a creator's own: the platform's, ANTHROPIC_API_KEY).
backoffMs?
optionalbackoffMs?:number
Defined in: apps/creator/src/claude.ts:234
fetch?
optionalfetch?: {(input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Defined in: apps/creator/src/claude.ts:236
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:227
The models in order: the first is asked, the others are its fallbacks.
priced?
optionalpriced?:SetPrice
Defined in: apps/creator/src/claude.ts:229
The price of a model the table does not know (FOI_CREATOR_PRICE).
retries?
optionalretries?:number
Defined in: apps/creator/src/claude.ts:233
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:231
The endpoint (Anthropic's by default).