Skip to main content

Overview

The model contracts define TypeScript types and Effect schemas for configuring AI models across different providers. Currently focused on Codex models with support for reasoning effort and performance modes.

Model Options

CodexModelOptions

Configuration options specific to Codex models.
reasoningEffort
'xhigh' | 'high' | 'medium' | 'low'
Controls the reasoning effort level for the model. Higher values provide more thorough analysis at the cost of increased latency.Available values:
  • xhigh - Extra high reasoning effort
  • high - High reasoning effort (default)
  • medium - Medium reasoning effort
  • low - Low reasoning effort
fastMode
boolean
Enables fast mode for quicker responses with reduced reasoning depth.

ProviderModelOptions

Top-level model options supporting multiple providers.
codex
CodexModelOptions
Provider-specific options for Codex models.

Model Slugs

Available Models

Built-in model options organized by provider:

ModelSlug Type

Flexible type allowing both built-in and custom model slugs:
The ModelSlug type accepts any string while providing autocomplete for built-in models in TypeScript-aware editors.

Default Configuration

Default Models

Model Aliases

Convenience aliases for model slugs:

Reasoning Effort Options

Usage Examples

Basic Model Configuration

Provider Model Options

Using Model Aliases

Type Definitions

CodexReasoningEffort

ModelOptionsByProvider

See also: