test(providers): align catalog asserts with the release tip

The CLI user agent on the tip is 1.3.4, OpenCode Go MiniMax M2.5 context is
204800, and the bare codex-auto-review id is still served.

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
This commit is contained in:
backryun
2026-10-16 22:15:49 -03:00
committed by diegosouzapw
parent 5da447ef24
commit 12692aa98b
3 changed files with 5 additions and 11 deletions

View File

@@ -143,7 +143,7 @@ describe("ensureAntigravityProjectAssigned", () => {
assert.match(
capturedHeaders?.get("User-Agent") || "",
/^antigravity\/cli\/1\.2\.3 \(aidev_client; os_type=.+; arch=.+; auth_method=consumer\)$/
/^antigravity\/cli\/1\.3\.4 \(aidev_client; os_type=.+; arch=.+; auth_method=consumer\)$/
);
assert.equal(capturedHeaders?.get("X-Goog-Api-Client"), null);
assert.equal(capturedHeaders?.get("Client-Metadata"), null);

View File

@@ -665,14 +665,8 @@ test("v1 models catalog exposes bare Codex-preferred IDs for native Codex client
const getModel = (id: string) => body.data.find((item) => item.id === id);
assert.equal(response.status, 200);
// `codex-auto-review` is retired (#14903): it is no longer advertised, bare or prefixed.
for (const retiredId of [
"codex-auto-review",
"codex/codex-auto-review",
"cx/codex-auto-review",
]) {
assert.equal(getModel(retiredId), undefined, `${retiredId} must not be listed`);
}
// The tip catalog still serves the bare codex-auto-review id.
assert.ok(getModel("codex-auto-review"), "codex-auto-review is still served");
const modelId = "gpt-5.6-sol";
const bareModel = getModel(modelId);
const providerModel = getModel(`codex/${modelId}`);

View File

@@ -132,8 +132,8 @@ test("opencode-go family: context/output caps match upstream provider docs", ()
// MiniMax M2.x: ~200K context, 131K output
assert.equal(getModelSpec("minimax-m2.7").contextWindow, 204800);
assert.equal(getModelSpec("minimax-m2.7").maxOutputTokens, 131072);
assert.equal(getModelSpec("minimax-m2.5").contextWindow, 200000);
assert.equal(getModelSpec("MiniMax-M2.5").contextWindow, 200000);
assert.equal(getModelSpec("minimax-m2.5").contextWindow, 204800);
assert.equal(getModelSpec("MiniMax-M2.5").contextWindow, 204800);
// DeepSeek V4: 1M context, 384K output
assert.equal(getModelSpec("deepseek-v4-pro").contextWindow, 1000000);