AppleConfig
Defined in: index.ts:84
Properties
Section titled “Properties”apiKey?
Section titled “apiKey?”
optionalapiKey:string
Defined in: index.ts:88
API key (not used for Apple Foundation Models, but required by base interface).
instructions?
Section titled “instructions?”
optionalinstructions:string
Defined in: index.ts:93
System instructions for the model.
maximumResponseTokens?
Section titled “maximumResponseTokens?”
optionalmaximumResponseTokens:number
Defined in: index.ts:99
Maximum response tokens to generate.
Default
Section titled “Default”2048samplingMode?
Section titled “samplingMode?”
optionalsamplingMode:"random"|"default"
Defined in: index.ts:111
Sampling mode: ‘random’ for creative, ‘default’ for deterministic.
Default
Section titled “Default”'default'temperature?
Section titled “temperature?”
optionaltemperature:number
Defined in: index.ts:105
Temperature for sampling (0.0-1.0).
Default
Section titled “Default”0.7