Skip to content

DecisionConfig

Defined in: core/src/decisions.ts:101

optional accountId?: string;

Defined in: core/src/decisions.ts:107

Cloudflare only: the account the Workers AI call runs on.


optional apiKey?: string;

Defined in: core/src/decisions.ts:105

Optional on opencode when running jev-1.13-free, which answers without a credential. Required on jev-1.13 and on every other host.


optional attribution?: Attribution;

Defined in: core/src/decisions.ts:111

OpenRouter only: names your app on its rankings.


optional fetchImpl?: (input, init?) => Promise<Response>;

Defined in: core/src/decisions.ts:118

Swapped in tests, or to route through a proxy.

MDN Reference

Parameter Type
input RequestInfo | URL
init? RequestInit

Promise<Response>


host: DecisionHost;

Defined in: core/src/decisions.ts:102


optional model?: string;

Defined in: core/src/decisions.ts:109

Defaults to each host’s always-current alias.


optional retry?: Omit<RetryOptions, "signal">;

Defined in: core/src/decisions.ts:116

Default: three attempts, transient failures only, Retry-After honoured.


optional timeoutMs?: number;

Defined in: core/src/decisions.ts:114

One attempt’s deadline, in ms. Default 15 s: Jev answers in under a second, so a call still open after this is not coming back.