0.2.61 puts business.model_key in the request, as qodercli 1.1.82 does, so Qoder and Qoder CN bill the model chosen, not Auto. 0.2.61 also holds 0.2.60's 429-message change (c1a625d is an ancestor of the 0.2.61 tree). Run (mote): go test ./internal/provider -run 'TestQoderMovers|TestMovedBuiltinsSayTheirPlugin|Mover' ok. With min put back to 0.2.60 the new TestQoderMoversNameTheModelInTheBusinessRecord fails. npm view @magpie-community/opencode-qoder-auth@0.2.61 --prefer-online --registry https://registry.npmjs.org prints 0.2.61. gofmt -l clean. Not run before this push: the full suite (run after the tag). Not tried on a real Qoder or Qoder CN account.
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1,20 @@
|
||||
package provider
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/yetone/magpie/internal/update"
|
||||
)
|
||||
|
||||
// Qoder's plugin before 0.2.61 left the model out of a request's business
|
||||
// record, which Qoder's own CLI (qodercli 1.1.82) fills with business.model_key,
|
||||
// and Qoder and Qoder CN booked every call as Auto whatever model_config named
|
||||
// (plugins#692, chansee97; plugins#638 after 0.2.54). The movers keep every
|
||||
// moved Qoder and Qoder CN user on a version that sends it.
|
||||
func TestQoderMoversNameTheModelInTheBusinessRecord(t *testing.T) {
|
||||
for _, id := range []string{"qoder", QoderCNID} {
|
||||
if update.Newer("0.2.61", movers[id].min) {
|
||||
t.Fatalf("the %s mover installs opencode-qoder-auth %s, which leaves business.model_key out", id, movers[id].min)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user