openai

package
v6.8.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package openai implements thinking configuration for OpenAI/Codex models.

OpenAI models use the reasoning_effort format with discrete levels (low/medium/high). Some models support xhigh and none levels. See: _bmad-output/planning-artifacts/architecture.md#Epic-8

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Applier

type Applier struct{}

Applier implements thinking.ProviderApplier for OpenAI models.

OpenAI-specific behavior:

  • Output format: reasoning_effort (string: low/medium/high/xhigh)
  • Level-only mode: no numeric budget support
  • Some models support ZeroAllowed (gpt-5.1, gpt-5.2)

func NewApplier

func NewApplier() *Applier

NewApplier creates a new OpenAI thinking applier.

func (*Applier) Apply

func (a *Applier) Apply(body []byte, config thinking.ThinkingConfig, modelInfo *registry.ModelInfo) ([]byte, error)

Apply applies thinking configuration to OpenAI request body.

Expected output format:

{
  "reasoning_effort": "high"
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL