Skip to content

basalt / ai/src / GenerateOptions

Interface: GenerateOptions ​

Defined in: ai/src/provider/types.ts:13

Properties ​

maxTokens? ​

> optional maxTokens?: number

Defined in: ai/src/provider/types.ts:18

Hard cap on output tokens.


messages ​

> messages: AIMessage[]

Defined in: ai/src/provider/types.ts:14


signal? ​

> optional signal?: AbortSignal

Defined in: ai/src/provider/types.ts:20

Abort the in-flight request. Providers forward it to the underlying fetch.


temperature? ​

> optional temperature?: number

Defined in: ai/src/provider/types.ts:16

Sampling temperature (0 = deterministic).

Released under the MIT License.