IRParameters
Defined in: packages/ai.matey.types/src/ir.ts:283
Normalized request parameters.
Common parameters across all providers, normalized to consistent ranges.
Provider-specific parameters can be added to custom field.
Example
Section titled “Example”const params: IRParameters = { model: 'gpt-4', temperature: 0.7, maxTokens: 1000, topP: 0.9, frequencyPenalty: 0.0, presencePenalty: 0.0, stopSequences: ['\n\n', 'END']};Properties
Section titled “Properties”custom?
Section titled “custom?”
readonlyoptionalcustom:Record<string,unknown>
Defined in: packages/ai.matey.types/src/ir.ts:347
Provider-specific parameters. Passed through to backend without modification.
frequencyPenalty?
Section titled “frequencyPenalty?”
readonlyoptionalfrequencyPenalty:number
Defined in: packages/ai.matey.types/src/ir.ts:319
Frequency penalty (-2.0 to 2.0). Penalize tokens based on frequency in text so far.
maxTokens?
Section titled “maxTokens?”
readonlyoptionalmaxTokens:number
Defined in: packages/ai.matey.types/src/ir.ts:301
Maximum tokens to generate. Actual limit depends on model and provider.
model?
Section titled “model?”
readonlyoptionalmodel:string
Defined in: packages/ai.matey.types/src/ir.ts:288
Model identifier. Provider-specific model name.
presencePenalty?
Section titled “presencePenalty?”
readonlyoptionalpresencePenalty:number
Defined in: packages/ai.matey.types/src/ir.ts:325
Presence penalty (-2.0 to 2.0). Penalize tokens based on whether they appear in text so far.
readonlyoptionalseed:number
Defined in: packages/ai.matey.types/src/ir.ts:336
Random seed for deterministic generation.
stopSequences?
Section titled “stopSequences?”
readonlyoptionalstopSequences: readonlystring[]
Defined in: packages/ai.matey.types/src/ir.ts:331
Stop sequences. Generation stops when any sequence is encountered.
temperature?
Section titled “temperature?”
readonlyoptionaltemperature:number
Defined in: packages/ai.matey.types/src/ir.ts:295
Sampling temperature (0.0 to 2.0). Higher values make output more random.
Default
Section titled “Default”0.7
readonlyoptionaltopK:number
Defined in: packages/ai.matey.types/src/ir.ts:313
Top-K sampling limit. Only consider top K tokens.
readonlyoptionaltopP:number
Defined in: packages/ai.matey.types/src/ir.ts:307
Nucleus sampling threshold (0.0 to 1.0). Alternative to temperature.
readonlyoptionaluser:string
Defined in: packages/ai.matey.types/src/ir.ts:341
User identifier for abuse monitoring.