Skip to content

BaseModelConfig

Defined in: src/models/model.ts:69

Base configuration interface for all model providers.

This interface defines the common configuration properties that all model providers should support. Provider-specific configurations should extend this interface.

optional modelId?: string;

Defined in: src/models/model.ts:74

The model identifier. This typically specifies which model to use from the provider’s catalog.


optional maxTokens?: number;

Defined in: src/models/model.ts:81

Maximum number of tokens to generate in the response.

Provider-specific documentation for exact behavior


optional temperature?: number;

Defined in: src/models/model.ts:88

Controls randomness in generation.

Provider-specific documentation for valid range


optional topP?: number;

Defined in: src/models/model.ts:95

Controls diversity via nucleus sampling.

Provider-specific documentation for details


optional contextWindowLimit?: number;

Defined in: src/models/model.ts:102

Maximum context window size in tokens for the model.

This value represents the total token capacity shared between input and output.