model_variant

command
v0.0.2 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: 7 Imported by: 0

Documentation

Overview

Demonstrates opencode-specific model variant handling: OpencodeVariant, Session.CurrentVariant, and Client.UnstableSetModel. opencode exposes reasoning-effort variants (e.g. "high", "max") under a base model id via _meta.opencode.variant. These are not part of stable ACP — they live under Session.Meta() and the typed CurrentVariant accessor.

go run ./examples/model_variant

Jump to

Keyboard shortcuts

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