Commit 6d41b25
committed
feat(opencode): add Mistral Small/Medium 3.5 + Claude Opus 4.7 reasoning variants
Cherry-picked from anomalyco/opencode origin/dev:
- Replace boolean isAnthropicAdaptive with anthropicAdaptiveEfforts() that
returns the per-model effort list. Adds opus-4-7/4.7 with the 5-tier
ladder [low, medium, high, xhigh, max], keeping opus-4-6/sonnet-4-6 on
the existing 4-tier ladder. Affects @ai-sdk/gateway, anthropic,
google-vertex/anthropic, amazon-bedrock, sap-ai-provider-v2 cases
(upstream 378c05f).
- Drop mistral from the early-return blacklist in variants() and replace
the empty @ai-sdk/mistral case with reasoning-effort variants for
Mistral Small 4 (mistral-small-2603, mistral-small-latest) and Medium
3.5 (mistral-medium-3.5). Models without capabilities.reasoning still
short-circuit (upstream 1a20703 + 639e27c).
Verified: typecheck clean; transform.test.ts 119/122 (3 failing tests
are pre-existing baseline failures unrelated to provider variants).1 parent 7e4939e commit 6d41b25
1 file changed
Lines changed: 24 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
415 | 425 | | |
416 | 426 | | |
417 | 427 | | |
418 | 428 | | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
| 429 | + | |
423 | 430 | | |
424 | 431 | | |
425 | 432 | | |
426 | 433 | | |
427 | | - | |
428 | 434 | | |
429 | 435 | | |
430 | 436 | | |
| |||
453 | 459 | | |
454 | 460 | | |
455 | 461 | | |
456 | | - | |
| 462 | + | |
457 | 463 | | |
458 | 464 | | |
459 | 465 | | |
| |||
609 | 615 | | |
610 | 616 | | |
611 | 617 | | |
612 | | - | |
| 618 | + | |
613 | 619 | | |
614 | 620 | | |
615 | 621 | | |
| |||
640 | 646 | | |
641 | 647 | | |
642 | 648 | | |
643 | | - | |
| 649 | + | |
644 | 650 | | |
645 | 651 | | |
646 | 652 | | |
| |||
723 | 729 | | |
724 | 730 | | |
725 | 731 | | |
726 | | - | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
727 | 741 | | |
728 | 742 | | |
729 | 743 | | |
| |||
747 | 761 | | |
748 | 762 | | |
749 | 763 | | |
750 | | - | |
| 764 | + | |
751 | 765 | | |
752 | 766 | | |
753 | 767 | | |
| |||
0 commit comments