effort

command
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Demonstrates WithEffort: opencode encodes reasoning depth as a `/<variant>` suffix on a model id (e.g. "anthropic/claude-opus-4-7/high"). WithEffort maps an abstract level (None/Low/Medium/High/Max) to whatever variant the chosen model exposes, with sensible fallback when the requested level is unavailable.

go run ./examples/effort

Jump to

Keyboard shortcuts

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