Skip to content

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.

const params: IRParameters = {
model: 'gpt-4',
temperature: 0.7,
maxTokens: 1000,
topP: 0.9,
frequencyPenalty: 0.0,
presencePenalty: 0.0,
stopSequences: ['\n\n', 'END']
};

readonly optional custom: Record<string, unknown>

Defined in: packages/ai.matey.types/src/ir.ts:347

Provider-specific parameters. Passed through to backend without modification.


readonly optional frequencyPenalty: 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.


readonly optional maxTokens: number

Defined in: packages/ai.matey.types/src/ir.ts:301

Maximum tokens to generate. Actual limit depends on model and provider.


readonly optional model: string

Defined in: packages/ai.matey.types/src/ir.ts:288

Model identifier. Provider-specific model name.


readonly optional presencePenalty: 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.


readonly optional seed: number

Defined in: packages/ai.matey.types/src/ir.ts:336

Random seed for deterministic generation.


readonly optional stopSequences: readonly string[]

Defined in: packages/ai.matey.types/src/ir.ts:331

Stop sequences. Generation stops when any sequence is encountered.


readonly optional temperature: number

Defined in: packages/ai.matey.types/src/ir.ts:295

Sampling temperature (0.0 to 2.0). Higher values make output more random.

0.7

readonly optional topK: number

Defined in: packages/ai.matey.types/src/ir.ts:313

Top-K sampling limit. Only consider top K tokens.


readonly optional topP: number

Defined in: packages/ai.matey.types/src/ir.ts:307

Nucleus sampling threshold (0.0 to 1.0). Alternative to temperature.


readonly optional user: string

Defined in: packages/ai.matey.types/src/ir.ts:341

User identifier for abuse monitoring.