provider: moved Command Code takes commandcode-auth 0.1.8, whose models take pictures as models.dev says, not none of them (ARNO on v0.1.810, Discord: command code provider 的所有模型都没有自动勾上支持图片输入) — Command Code's /provider/v1/models gives no modalities, and the plugin (0.1.7 and before) answered every model's capabilities.input.image with false, which the plugin host reads as said (host.js imageSaid) and pluginCatalog keeps as the model's ImageInput, over catalog.SeesImages. So every model of a moved plan showed no image input; the built-in, whose list says nothing either, answered from models.dev and still does (not-moved users were not affected). Plugin 0.1.8 (magpie-community/plugins 42e762b) says image only when it knows: the list's modalities, its default list, the CLI's Go table, or a Claude model; of any other it says nothing, and entryFor answers from models.dev as it does for the built-in. The mover's min is 0.1.8, so keepMovedCurrent updates moved users. TestMoveCommandCode checks the min and fails on 0.1.6. Tried through the plugin host with the real Command Code account under a temp HOME (a copy of the models.dev cache, the key read from migrations.json, nothing live written): 0.1.7 gave 0 of the shown models image input, 0.1.8 gave 22 of 24 — Claude, GPT, DeepSeek V4 Flash Vision — with DeepSeek V4 Pro and Flash, text-only on models.dev, left without. go vet, builds (darwin, GOOS=linux) and go test -tags nogui -count=1 ./... under a temp HOME pass.
This commit is contained in:
1 parent
cdc3140ace
commit
1594544041
2 files changed
+8
-1
No files matched your search
@@ -150,7 +150,7 @@ func init() {
|
||||
|
||||
movers[CommandCodePlanID] = &mover{
|
||||
pkg: "@magpie-community/opencode-commandcode-auth",
|
||||
min: "0.1.6", // a failure's status and its sign-in mark as the built-in's; a Go account lists Go's models
|
||||
min: "0.1.8", // a failure's status and its sign-in mark as the built-in's; a Go account lists Go's models; a model the plugin doesn't know takes pictures as models.dev says
|
||||
agents: []string{CommandCodePlanID},
|
||||
out: func() ([]Moving, error) {
|
||||
var out []Moving
|
||||
|
||||
@@ -8,6 +8,8 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/yetone/magpie/internal/update"
|
||||
)
|
||||
|
||||
// moveAndBack does what Move and MoveBack do with a mover's accounts, but
|
||||
@@ -229,6 +231,11 @@ func TestMoveCommandCode(t *testing.T) {
|
||||
if l := cmdLogins(); len(l) != 3 {
|
||||
t.Fatalf("cmd logins %+v", l)
|
||||
}
|
||||
// 0.1.7 and before said every model took no pictures (the list says
|
||||
// nothing of them), which magpie takes over models.dev's answer
|
||||
if update.Newer("0.1.8", movers[CommandCodePlanID].min) {
|
||||
t.Fatalf("the move installs commandcode-auth %q, which marks every model text-only", movers[CommandCodePlanID].min)
|
||||
}
|
||||
}
|
||||
|
||||
func TestMoveCursor(t *testing.T) {
|
||||
|
||||
Reference in new issue
Block a user