Skip to content

BaseModelConfig

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

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.

modelId?: string;

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

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


maxTokens?: number;

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

Maximum number of tokens to generate in the response.

Provider-specific documentation for exact behavior


temperature?: number;

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

Controls randomness in generation.

Provider-specific documentation for valid range


topP?: number;

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

Controls diversity via nucleus sampling.

Provider-specific documentation for details


contextWindowLimit?: number;

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

Maximum context window size in tokens for the model.

This value represents the total token capacity shared between input and output. When not provided, it is automatically resolved from a built-in lookup table based on the configured model ID. An explicit value always takes precedence.

When modelId is changed via updateConfig(), this value is automatically re-resolved if it was initially auto-populated. Explicitly set values are preserved.