DecisionConfig
Defined in: core/src/decisions.ts:101
Properties
Section titled “Properties”accountId?
Section titled “accountId?”optional accountId?: string;Defined in: core/src/decisions.ts:107
Cloudflare only: the account the Workers AI call runs on.
apiKey?
Section titled “apiKey?”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.
attribution?
Section titled “attribution?”optional attribution?: Attribution;Defined in: core/src/decisions.ts:111
OpenRouter only: names your app on its rankings.
fetchImpl?
Section titled “fetchImpl?”optional fetchImpl?: (input, init?) => Promise<Response>;Defined in: core/src/decisions.ts:118
Swapped in tests, or to route through a proxy.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
RequestInfo | URL |
init? |
RequestInit |
Returns
Section titled “Returns”Promise<Response>
host: DecisionHost;Defined in: core/src/decisions.ts:102
model?
Section titled “model?”optional model?: string;Defined in: core/src/decisions.ts:109
Defaults to each host’s always-current alias.
retry?
Section titled “retry?”optional retry?: Omit<RetryOptions, "signal">;Defined in: core/src/decisions.ts:116
Default: three attempts, transient failures only, Retry-After honoured.
timeoutMs?
Section titled “timeoutMs?”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.