cloudaxe-opencode/packages/opencode/test/provider
Aiden Cline f7dcfc2680 feat: drive reasoning variants from models.dev reasoning_options
Parse the curated reasoning_options field from models.dev api.json and use
its effort values to generate reasoning variants instead of the hardcoded
per-package tables, in both the v1 provider catalog and the v2 catalog plugin.

- core: ModelsDev.ReasoningOption discriminated union (toggle | effort |
  budget_tokens); effort values stay open strings and unknown option types
  are tolerated since api.json is cast, not decoded
- core: ReasoningVariants shared per-package effort encoder used by v1
  ProviderTransform.variants and the v2 ModelsDevPlugin
- core: v2 catalog generates effort variants from reasoning_options;
  curated experimental modes win id collisions; anthropic profile gains
  the effort semantic
- llm: anthropic protocol supports adaptive thinking, lowers effort to
  output_config.effort, and sends the effort-2025-11-24 beta header
- opencode: resolved Provider.Model carries capabilities.reasoningOptions
  (unknown types and null effort values dropped at the mapping boundary);
  config models accept reasoning_options; models without usable effort
  data fall back to the hardcoded tables unchanged

Catalog-wide audit vs live api.json: 2975 models byte-identical, 38 diffs,
all data correcting stale hardcoded effort lists.
2026-06-09 17:21:11 -05:00
..
amazon-bedrock.test.ts fix(opencode): honor Bedrock Mantle config (#31001) 2026-06-05 13:14:55 -05:00
cf-ai-gateway-e2e.test.ts feat(core): add command registry (#30624) 2026-06-04 02:57:43 -04:00
digitalocean.test.ts refactor(core): move database schema ownership (#29068) 2026-05-30 21:08:38 -04:00
gitlab-duo.test.ts refactor(core): move database schema ownership (#29068) 2026-05-30 21:08:38 -04:00
header-timeout.test.ts feat(core): add command registry (#30624) 2026-06-04 02:57:43 -04:00
model-status.test.ts refactor(core): move v1 schemas into core (#30473) 2026-06-03 02:42:13 +00:00
provider.test.ts chore: generate 2026-06-04 06:59:09 +00:00
reasoning-options.test.ts feat: drive reasoning variants from models.dev reasoning_options 2026-06-09 17:21:11 -05:00
transform.test.ts feat: drive reasoning variants from models.dev reasoning_options 2026-06-09 17:21:11 -05:00