Skip to content

AppleConfig

Defined in: index.ts:84

optional apiKey: string

Defined in: index.ts:88

API key (not used for Apple Foundation Models, but required by base interface).


optional instructions: string

Defined in: index.ts:93

System instructions for the model.


optional maximumResponseTokens: number

Defined in: index.ts:99

Maximum response tokens to generate.

2048

optional samplingMode: "random" | "default"

Defined in: index.ts:111

Sampling mode: ‘random’ for creative, ‘default’ for deterministic.

'default'

optional temperature: number

Defined in: index.ts:105

Temperature for sampling (0.0-1.0).

0.7