Multiplayer agent harness for work.
Add GPT-6.1 Sol (#1744)
Regan Bell62f8d9e99965
diff --git a/src/model/pi-models.ts b/src/model/pi-models.tsindex c5fcce2e9..daba39807 100644--- a/src/model/pi-models.ts+++ b/src/model/pi-models.ts@@ -114,7 +114,12 @@ interface ModelEntry {};}-const GPT_56_CLONE = { template: "gpt-5.5", contextWindow: 1_050_000, maxTokens: 128_000 } as const;+const GPT_56_CLONE = {+ template: "gpt-5.5",+ contextWindow: 1_050_000,+ maxTokens: 128_000,+ thinkingLevelMap: { max: "max" },+} as const;export const MODEL_REGISTRY: readonly ModelEntry[] = [{@@ -241,6 +246,7 @@ export const MODEL_REGISTRY: readonly ModelEntry[] = [base: true,clone: {...GPT_56_CLONE,+ thinkingLevelMap: { ...GPT_56_CLONE.thinkingLevelMap, off: null },input: 10,output: 50,cacheRead: 1,@@ -258,6 +264,7 @@ export const MODEL_REGISTRY: readonly ModelEntry[] = [request: { model: "gpt-6-astra", service_tier: "ultrafast" },clone: {...GPT_56_CLONE,+ thinkingLevelMap: { ...GPT_56_CLONE.thinkingLevelMap, off: null },input: 60,output: 300,cacheRead: 6,@@ -265,6 +272,23 @@ export const MODEL_REGISTRY: readonly ModelEntry[] = [tiers: [{ inputTokensAbove: 272_000, input: 120, output: 450, cacheRead: 12, cacheWrite: 150 }],},},+ {+ id: "gpt-6.1-sol",+ buttonLabel: "6.1 Sol",+ name: "GPT-6.1 Sol",+ fastMode: true,+ webui: true,+ base: true,+ clone: {+ ...GPT_56_CLONE,+ thinkingLevelMap: { off: null, minimal: null, max: "max" },+ input: 2,+ output: 10,+ cacheRead: 0.1,+ cacheWrite: 2.5,+ tiers: [{ inputTokensAbove: 272_000, input: 4, output: 15, cacheRead: 0.2, cacheWrite: 5 }],+ },+ },{id: "gpt-6-sol",buttonLabel: "6 Sol",diff --git a/test/model-credential-route.test.ts b/test/model-credential-route.test.tsindex 397d8887a..095501e4f 100644--- a/test/model-credential-route.test.ts+++ b/test/model-credential-route.test.ts@@ -73,6 +73,7 @@ test("admin model credentials are encrypted, write-only, live, and removable", a{ id: "gpt-5.6-luna", name: "GPT-5.6 Luna", provider: "openai" },{ id: "gpt-6-astra", name: "GPT-6 Astra", provider: "openai" },{ id: "gpt-6-astra-ultrafast", name: "GPT-6 Astra · Ultrafast (6× cost)", provider: "openai" },+ { id: "gpt-6.1-sol", name: "GPT-6.1 Sol", provider: "openai" },{ id: "gpt-6-sol", name: "GPT-6 Sol", provider: "openai" },{ id: "gpt-6-luna", name: "GPT-6 Luna", provider: "openai" },{ id: "openrouter/auto", name: "OpenRouter Auto", provider: "openrouter" },diff --git a/test/pi-harness-effort-wire.test.ts b/test/pi-harness-effort-wire.test.tsindex b55d383cc..59571a493 100644--- a/test/pi-harness-effort-wire.test.ts+++ b/test/pi-harness-effort-wire.test.ts@@ -6,9 +6,17 @@ import { getRequiredModel } from "../src/model/pi-models.ts";import type { HarnessTurnInput } from "../src/harness/harness.ts";// Exercise the real AgentSession and SDK serializer, not just the effort setter.-for (const [modelId, upper, allowed] of [- ["gpt-5.4", "xhigh", ["none", "low", "medium", "high", "xhigh"]],- ["gpt-5", "high", ["minimal", "low", "medium", "high"]],+for (const [modelId, upper, allowed, off, minimal] of [+ ["gpt-5.4", "xhigh", ["none", "low", "medium", "high", "xhigh"], "none", "low"],+ ["gpt-5", "high", ["minimal", "low", "medium", "high"], "minimal", "minimal"],+ ["gpt-6.1-sol", "max", ["low", "medium", "high", "xhigh", "max"], "low", "low"],+ ["gpt-5.6-sol", "max", ["none", "low", "medium", "high", "xhigh", "max"], "none", "low"],+ ["gpt-5.6-terra", "max", ["none", "low", "medium", "high", "xhigh", "max"], "none", "low"],+ ["gpt-5.6-luna", "max", ["none", "low", "medium", "high", "xhigh", "max"], "none", "low"],+ ["gpt-6-sol", "max", ["none", "low", "medium", "high", "xhigh", "max"], "none", "low"],+ ["gpt-6-luna", "max", ["none", "low", "medium", "high", "xhigh", "max"], "none", "low"],+ ["gpt-6-astra", "max", ["low", "medium", "high", "xhigh", "max"], "low", "low"],+ ["gpt-6-astra-ultrafast", "max", ["low", "medium", "high", "xhigh", "max"], "low", "low"],] as const) {test(`Pi sends supported reasoning through HTTP for ${modelId}`, async (t) => {const bodies: Array<{@@ -113,7 +121,7 @@ for (const [modelId, upper, allowed] of [url: `http://127.0.0.1:${address.port}`,apiKey: "test-key",apiKeyHeader: "api-key",- models: { [modelId]: modelId },+ models: { [modelId]: modelId === "gpt-6-astra-ultrafast" ? "gpt-6-astra" : modelId },},});t.after(() => harness.turns.close?.());@@ -124,9 +132,9 @@ for (const [modelId, upper, allowed] of [["medium", "medium"],["low", "low"],["high", "high"],- ["minimal", modelId === "gpt-5" ? "minimal" : "low"],- ["off", modelId === "gpt-5" ? "minimal" : "none"],- ["xhigh", upper],+ ["minimal", minimal],+ ["off", off],+ ["xhigh", (allowed as readonly string[]).includes("xhigh") ? "xhigh" : upper],["auto", "medium"],["default", undefined],]) {diff --git a/test/pi-harness-fast-mode.test.ts b/test/pi-harness-fast-mode.test.tsindex 8b18b2ce6..b2755dd1d 100644--- a/test/pi-harness-fast-mode.test.ts+++ b/test/pi-harness-fast-mode.test.ts@@ -104,6 +104,7 @@ test("auto resets a reused Anthropic session to its interactive default", () =>});const ASTRA = getRequiredModel("gpt-6-astra", false) as Model<Api>;+const SOL_61 = getRequiredModel("gpt-6.1-sol", false) as Model<Api>;const OPUS_55 = getRequiredModel("claude-opus-5-5", false);const SONNET_55 = getRequiredModel("claude-sonnet-5-5", false);const OPUS = getRequiredModel("claude-opus-5", false) as Model<Api>;@@ -119,6 +120,9 @@ const pricingCases: Array<[string, Model<Api>, Partial<Usage>, number]> = [["cache writes", ASTRA, { cacheWrite: 8_000 }, 0.1],["high-input boundary", ASTRA, { input: 272_000 }, 2.72],["high-input tier", ASTRA, { input: 300_000 }, 6],+ ["GPT-6.1 Sol mixed tokens", SOL_61, ASTRA_TOKENS, 0.055],+ ["GPT-6.1 Sol cache reads at 5% of input", SOL_61, { cacheRead: 100_000 }, 0.01],+ ["GPT-6.1 Sol high-input tier", SOL_61, { input: 300_000 }, 1.2],["mixed 1h writes",OPUS,diff --git a/test/pi-models.test.ts b/test/pi-models.test.tsindex fb309e06f..5148e559a 100644--- a/test/pi-models.test.ts+++ b/test/pi-models.test.ts@@ -16,6 +16,7 @@ import {contextTokenBudgetForModel,codexProviderModelId,codexSubscriptionModelId,+ modelSupportsFastMode,} from "../src/model/pi-models.ts";test("every selectable base model resolves against the pi-ai registry", () => {@@ -117,6 +118,7 @@ test("the curated catalog contains only current model families", () => {"gpt-5.6-luna","gpt-6-astra","gpt-6-astra-ultrafast",+ "gpt-6.1-sol","gpt-6-sol","gpt-6-luna","openrouter/auto",@@ -126,6 +128,23 @@ test("the curated catalog contains only current model families", () => {assert.equal(getRequiredModel("gpt-6-astra").contextWindow, 1_050_000);assert.equal(getRequiredModel("gpt-6-sol").contextWindow, 1_050_000);assert.equal(getRequiredModel("gpt-6-luna").contextWindow, 1_050_000);+ const sol61 = getRequiredModel("gpt-6.1-sol");+ assert.equal(sol61.contextWindow, 1_050_000);+ assert.equal(sol61.maxTokens, 128_000);+ assert.equal(String(sol61.provider), "openai");+ assert.equal(sol61.api, "openai-responses");+ assert.deepEqual(sol61.cost, {+ input: 2,+ output: 10,+ cacheRead: 0.1,+ cacheWrite: 2.5,+ tiers: [{ inputTokensAbove: 272_000, input: 4, output: 15, cacheRead: 0.2, cacheWrite: 5 }],+ });+ assert.equal(sol61.thinkingLevelMap?.off, null);+ assert.equal(sol61.thinkingLevelMap?.minimal, null);+ assert.equal(sol61.thinkingLevelMap?.max, "max");+ assert.equal(modelSupportsFastMode("gpt-6.1-sol"), true);+ assert.equal(contextTokenBudgetForModel("gpt-6.1-sol"), 150_000);assert.deepEqual(getRequiredModel("gpt-6-sol").cost, {input: 2,output: 10,@@ -252,7 +271,7 @@ test("personal models retain canonical endpoints when org endpoints are overridd});test("registered OpenAI clones retain exact model identity on the Codex subscription transport", () => {- for (const id of ["gpt-6-astra", "gpt-6-sol", "gpt-6-luna"]) {+ for (const id of ["gpt-6-astra", "gpt-6.1-sol", "gpt-6-sol", "gpt-6-luna"]) {const api = getRequiredModel(id);const subscription = getRequiredModel(codexSubscriptionModelId(id));assert.equal(subscription.id, `codex/${id}`);